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. |
rique223
left a comment
There was a problem hiding this comment.
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