From a649a4d57929d11e4351d878fb523dae8a537508 Mon Sep 17 00:00:00 2001 From: Dean Sofer Date: Wed, 9 Oct 2024 17:15:31 +0000 Subject: [PATCH] Try to prevent double onClick --- src/Avatar.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Avatar.tsx b/src/Avatar.tsx index 3d46022..01bdb86 100644 --- a/src/Avatar.tsx +++ b/src/Avatar.tsx @@ -7,7 +7,5 @@ export type AvatarProps = { } export default function Avatar({ user, onClick }: AvatarProps) { - return user - ? {user.name} - : + return {user?.name} } \ No newline at end of file