From 6f312e2ca55e3c69af35e22265c3465095402024 Mon Sep 17 00:00:00 2001 From: highperfocused Date: Sat, 22 Nov 2025 01:54:08 +0100 Subject: [PATCH] Add conditional rendering for "Switch Account" section in AccountSwitcher --- src/components/auth/AccountSwitcher.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/auth/AccountSwitcher.tsx b/src/components/auth/AccountSwitcher.tsx index 4a3b7e5..f153d18 100644 --- a/src/components/auth/AccountSwitcher.tsx +++ b/src/components/auth/AccountSwitcher.tsx @@ -58,8 +58,12 @@ export function AccountSwitcher({ onAddAccountClick }: AccountSwitcherProps) {

{getDisplayName(currentUser)}

- -
Switch Account
+ {otherUsers.length > 0 && ( + <> + +
Switch Account
+ + )} {otherUsers.map((user) => (