From 10a486527ca59da8a4db761e197aec83d9d4cff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Wed, 10 Dec 2025 15:44:43 +0100 Subject: [PATCH] fix: stop propagation when clicking usernames --- src/components/nostr/UserName.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/nostr/UserName.tsx b/src/components/nostr/UserName.tsx index 4bc65e9..8458fb1 100644 --- a/src/components/nostr/UserName.tsx +++ b/src/components/nostr/UserName.tsx @@ -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)}...`); };