Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
fix: reset tx hash on transaction dialog context when closing the dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Rickk137 committed Jun 13, 2022
1 parent 94c16dd commit ae8af2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/context/useTransactionDialogContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ const TransactionDialogContextProvider: React.FC<{
}
}, [txHash, provider]);

useEffect(() => {
if (!visible) setTxHash(undefined);
}, [visible]);

const stateText: Record<TxState, Record<string, string>> = {
confirmed: {
tile: 'Transaction Confirmed',
Expand Down

0 comments on commit ae8af2a

Please sign in to comment.