From 1f71a9e1872ec8236d20cd9f49b26f5e054c8d67 Mon Sep 17 00:00:00 2001 From: k00b Date: Thu, 31 Oct 2024 15:36:51 -0500 Subject: [PATCH] fix logout purge of localstorage --- components/nav/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/nav/common.js b/components/nav/common.js index 9574c50d..42a7d2e9 100644 --- a/components/nav/common.js +++ b/components/nav/common.js @@ -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: '/' }) }}