Skip to content

Commit

Permalink
Little improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Feb 16, 2023
1 parent 6f01ab4 commit 72dc129
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/provider/use-metamask.ts
Expand Up @@ -71,6 +71,8 @@ export const useMetamask = ({
await handleLogout?.();
localStorage.setItem('isWalletConnected', 'false');
setProvider?.(null);
await queryClient.invalidateQueries('wallet');
await queryClient.invalidateQueries('session');
}, [handleLogout, setProvider]);

const detectWalletChange = useCallback(async () => {
Expand Down

0 comments on commit 72dc129

Please sign in to comment.