Skip to content

Commit

Permalink
Reset notification status for new tx hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
garyghayrat committed Dec 1, 2023
1 parent 556a365 commit eb8a56e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hooks/useEasyWrite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ export const useEasyWrite = (
console.error('useEasyWrite must have a chainId or functionName');
return;
}
// reset if new hash
if (hash !== prev.hash) setIsNotificationShownAlready(false);
// succeed
if (
hash &&
Expand Down

0 comments on commit eb8a56e

Please sign in to comment.