-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: clear transaction data after submission or cancellation #30546
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
@@ -225,6 +226,7 @@ const Footer = () => { | |||
} | |||
dispatch(updateCustomNonce('')); | |||
dispatch(setNextNonce('')); | |||
dispatch(clearConfirmTransaction()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, but could we create a local function to remove the duplication such as resetTransactionState
?
Builds ready [f0a2136]
Page Load Metrics (1891 ± 90 ms)
Bundle size diffs
|
@@ -178,6 +178,12 @@ const Footer = () => { | |||
(!isScrollToBottomCompleted && !isSignature) || | |||
hardwareWalletRequiresConnection; | |||
|
|||
const resetTransactionState = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, unit tests would be nice but I appreciate this is high priority.
Tested on Screen.Recording.2025-02-25.at.09.55.22.mov |
Description
Related issues
Fixes: #29374
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist