fix: stop propagation when clicking usernames

This commit is contained in:
Alejandro Gómez
2025-12-10 15:44:43 +01:00
parent 9ef5e7ecb4
commit 10a486527c

View File

@@ -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)}...`);
};