mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-09 15:07:10 +02:00
fix: stop propagation when clicking usernames
This commit is contained in:
@@ -19,7 +19,8 @@ export function UserName({ pubkey, isMention, className }: UserNameProps) {
|
||||
const profile = useProfile(pubkey);
|
||||
const displayName = getDisplayName(pubkey, profile);
|
||||
|
||||
const handleClick = () => {
|
||||
const handleClick = (e: React.MouseEvent) => {
|
||||
e.stopPropagation();
|
||||
addWindow("profile", { pubkey }, `Profile ${pubkey.slice(0, 8)}...`);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user