diff --git a/src/components/auth/AccountSwitcher.tsx b/src/components/auth/AccountSwitcher.tsx index ede15ad..6380408 100644 --- a/src/components/auth/AccountSwitcher.tsx +++ b/src/components/auth/AccountSwitcher.tsx @@ -1,8 +1,7 @@ // NOTE: This file is stable and usually should not be modified. // It is important that all functionality in this file is preserved, and should only be modified if explicitly requested. -import React from 'react'; -import { ChevronDown, LogOut, UserPlus } from 'lucide-react'; +import { ChevronDown, LogOut, UserIcon, UserPlus } from 'lucide-react'; import { DropdownMenu, DropdownMenuContent, @@ -28,10 +27,10 @@ export function AccountSwitcher({ onAddAccountClick }: AccountSwitcherProps) { @@ -46,10 +45,10 @@ export function AccountSwitcher({ onAddAccountClick }: AccountSwitcherProps) { > - {user.metadata.name?.charAt(0)} + {user.metadata.name?.charAt(0) || } -
-

{user.metadata.name}

+
+

{user.metadata.name || user.pubkey}

{user.id === currentUser.id &&
}