-
Notifications
You must be signed in to change notification settings - Fork 5.2k
fix: prevent multiple account creations in the same flow. #31543
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
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. |
✨ Files requiring CODEOWNER review ✨🖥️ @MetaMask/wallet-ux
|
Builds ready [2be8c0e]
UI Startup Metrics (1180 ± 62 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [bf910f5]
UI Startup Metrics (1286 ± 73 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Better solution could just be to disable the button upon click via local state. |
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.
Actually, I'd prefer we disable the button; that's a known, good UX practice rather than making an element look actionable when it isn't
Description
This pr prevents the creation of multiple accounts when clicking the create button multiple times prior to the modal closing.
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/MMMULTISRP-134?atlOrigin=eyJpIjoiOTAzNjNjNmJlNTc2NDllNjliZTE5MDYwN2M5NmUxYTYiLCJwIjoiaiJ9
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist