-
Notifications
You must be signed in to change notification settings - Fork 11k
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: Login form GUI crash after closing 2FA modal #31625
fix: Login form GUI crash after closing 2FA modal #31625
Conversation
🦋 Changeset detectedLatest commit: 1649545 The changes in this PR will be included in the next version bump. This PR includes changesets to release 30 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Fixed a bug in which the LoginForm would crash upon the cancellation or closure of the 2FA modal. This issue occurred because the "totp-canceled" error was not mapped to the list of errors that could occur with this component.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #31625 +/- ##
===========================================
+ Coverage 53.70% 54.39% +0.68%
===========================================
Files 2266 2280 +14
Lines 49703 50143 +440
Branches 10129 10230 +101
===========================================
+ Hits 26693 27274 +581
+ Misses 20570 20417 -153
- Partials 2440 2452 +12
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Hey @abhipatel0211, appreciate your contribution! I've reviewed your fix for the GUI crash in the 2FA modal. Unfortunately, it seemed to be more of a workaround than addressing the root cause of the issue. However, your changes led me to identify the actual problem, and I've took the freedom to implement the fix in your PR. Thanks again for your assistance.
Regarding the cursor fix, it's already addressed in this PR: #31621. Now, the "resend email" is presented as a button, enhancing the overall user experience.
Proposed changes
This PR fixes a bug in which the LoginForm would crash upon the cancellation or closure of the 2FA modal. This issue occurred because the "totp-canceled" error was not mapped to the list of errors that could occur with this component.
Demo gif:
Steps to test or reproduce
Further comments
WM-224