From 73e7e818b2811d8ba2d945d461999ce3b8f09290 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 16 May 2025 14:09:28 -0500 Subject: [PATCH] Improve AccountSwitcher without kind 0 --- src/components/auth/AccountSwitcher.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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 &&
}