Skip to content

Commit

Permalink
fixed on logout claim gas list reset
Browse files Browse the repository at this point in the history
  • Loading branch information
alimaktabi committed Feb 15, 2024
1 parent 6840565 commit 904c85b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions context/gasTapProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,13 @@ export const GasTapProvider: FC<
userToken,
]);

useEffect(() => {
if (userToken) return;

setOneTimeClaimedGasList([]);
setActiveClaimHistory([]);
}, [userToken]);

useEffect(() => {
if (activeChain) {
setActiveClaimReceipt(
Expand Down

0 comments on commit 904c85b

Please sign in to comment.