Handle failed resumeSession case when switching accounts

This commit is contained in:
Eric Bailey
2024-05-16 10:40:01 -05:00
parent b635d000b5
commit 825bf23732
+5
View File
@@ -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)
}