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 Nov 29, 2023
1 parent 2dd1fe3 commit 7326eda
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 @@ -56,6 +56,8 @@ export const useEasyWrite = (
`
);
if (!config.request) return;
// reset if new hash
if (hash !== prev.hash) setIsNotificationShownAlready(false);
// succeed
if (
hash &&
Expand Down

0 comments on commit 7326eda

Please sign in to comment.