From 98af0e86786b8b3c6d4b36a5b6409fc5f6de14a5 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 16 May 2024 10:46:20 -0500 Subject: Handle failed resumeSession case when switching accounts (#4047) --- src/lib/hooks/useAccountSwitcher.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/hooks/useAccountSwitcher.ts') diff --git a/src/lib/hooks/useAccountSwitcher.ts b/src/lib/hooks/useAccountSwitcher.ts index 33d56eb85..09ff30277 100644 --- a/src/lib/hooks/useAccountSwitcher.ts +++ b/src/lib/hooks/useAccountSwitcher.ts @@ -53,6 +53,11 @@ export function useAccountSwitcher() { logger.error(`switch account: selectAccount failed`, { message: e.message, }) + requestSwitchToAccount({requestedAccount: account.did}) + Toast.show( + _(msg`Please sign in as @${account.handle}`), + 'circle-exclamation', + ) } finally { setPendingDid(null) } -- cgit 1.4.1