Skip to content

Commit

Permalink
Login bugfixing
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Feb 16, 2023
1 parent b3a3224 commit 8a1282e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/provider/use-metamask.ts
Expand Up @@ -78,7 +78,8 @@ export const useMetamask = ({
console.log({ deduplicatedWallets });
if (deduplicatedWallets.length > 1) {
await disconnect();
await queryClient.invalidateQueries();
await queryClient.invalidateQueries("wallet");
await queryClient.invalidateQueries("session");
}
}, [[walletsConnected, handleLogout, disconnect]]);

Expand Down

0 comments on commit 8a1282e

Please sign in to comment.