From eb8a56e990ddb74ec6148fa4dc6e1ca97f1daec5 Mon Sep 17 00:00:00 2001 From: garyghayrat Date: Wed, 29 Nov 2023 11:07:08 -0500 Subject: [PATCH] Reset notification status for new tx hashes --- hooks/useEasyWrite.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hooks/useEasyWrite.ts b/hooks/useEasyWrite.ts index 20ff24a..d90b472 100644 --- a/hooks/useEasyWrite.ts +++ b/hooks/useEasyWrite.ts @@ -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 &&