fix logout purge of localstorage

This commit is contained in:
k00b 2024-10-31 15:36:51 -05:00
parent b8216740d4
commit 1f71a9e187
1 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ export default function LoginButton () {
function LogoutObstacle ({ onClose }) {
const { registration: swRegistration, togglePushSubscription } = useServiceWorker()
const { wallets } = useWallets()
const { removeLocalWallets } = useWallets()
const { multiAuthSignout } = useAccounts()
return (
@ -292,7 +292,7 @@ function LogoutObstacle ({ onClose }) {
await togglePushSubscription().catch(console.error)
}
await wallets.resetClient().catch(console.error)
removeLocalWallets().catch(console.error)
await signOut({ callbackUrl: '/' })
}}