Handle failed resumeSession case when switching accounts (#4047)
parent
400c269330
commit
98af0e8678
|
@ -53,6 +53,11 @@ export function useAccountSwitcher() {
|
||||||
logger.error(`switch account: selectAccount failed`, {
|
logger.error(`switch account: selectAccount failed`, {
|
||||||
message: e.message,
|
message: e.message,
|
||||||
})
|
})
|
||||||
|
requestSwitchToAccount({requestedAccount: account.did})
|
||||||
|
Toast.show(
|
||||||
|
_(msg`Please sign in as @${account.handle}`),
|
||||||
|
'circle-exclamation',
|
||||||
|
)
|
||||||
} finally {
|
} finally {
|
||||||
setPendingDid(null)
|
setPendingDid(null)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue