fix logout purge of localstorage
This commit is contained in:
parent
b8216740d4
commit
1f71a9e187
|
@ -263,7 +263,7 @@ export default function LoginButton () {
|
||||||
|
|
||||||
function LogoutObstacle ({ onClose }) {
|
function LogoutObstacle ({ onClose }) {
|
||||||
const { registration: swRegistration, togglePushSubscription } = useServiceWorker()
|
const { registration: swRegistration, togglePushSubscription } = useServiceWorker()
|
||||||
const { wallets } = useWallets()
|
const { removeLocalWallets } = useWallets()
|
||||||
const { multiAuthSignout } = useAccounts()
|
const { multiAuthSignout } = useAccounts()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -292,7 +292,7 @@ function LogoutObstacle ({ onClose }) {
|
||||||
await togglePushSubscription().catch(console.error)
|
await togglePushSubscription().catch(console.error)
|
||||||
}
|
}
|
||||||
|
|
||||||
await wallets.resetClient().catch(console.error)
|
removeLocalWallets().catch(console.error)
|
||||||
|
|
||||||
await signOut({ callbackUrl: '/' })
|
await signOut({ callbackUrl: '/' })
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue