-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Remove unnecessary redirection / code from Swaps, update content #21935
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. |
Builds ready [bf4f198]
Page Load Metrics (683 ± 257 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
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.
I have tested it and seems that the bug has been fixed
More than one release label on PR. Keeping the lowest one (release-11.6.0) on PR and removing other release labels (release-11.7.0). |
Description
This PR solves 3 things:
Why the removed code was not needed:
this.setSwapsErrorKey(QUOTES_EXPIRED_ERROR);
is done in the SwapsController: https://github.com/MetaMask/metamask-extension/blob/develop/app/scripts/controllers/swaps.js#L440The functions that were used from the deleted code are still used in the old Swaps design (our fallback solution). Once we will be cleaning up the old Swaps design code, those functions will be removed as well.
Screenshots
Updated content:
Notification page:
Testing Steps
Test 1 - make sure Swaps work and we still show the Notification Page if a user stayed on the Prepare Swap Page too long with everything filled in
Test 2 - Show the Prepare Swap Page instead of the Notification Page after clicking on the "Try Again" link: