You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Settings- Security - Invalid code error persists if close and reopen 2-factor setup #19210
Please re-state the problem that we are trying to solve in this issue.
Invalid error code persists for 2-factor setup page when we reopen it
What is the root cause of that problem?
We are not cleaning the account messages from onyx once we unmount the BaseTwoFactorAuthForm component.
What changes do you think we should make in order to solve the problem?
We need to add the useEffect cleanup function for BaseTwoFactorAuthForm component where we will call the function Session.clearAccountMessages(); which gets executed on the unmount of the component.
Activity
melvin-bot commentedon May 18, 2023
Triggered auto assignment to @sonialiap (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon May 18, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)Pujan92 commentedon May 18, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Invalid error code persists for 2-factor setup page when we reopen it
What is the root cause of that problem?
We are not cleaning the account messages from onyx once we unmount the
BaseTwoFactorAuthFormcomponent.What changes do you think we should make in order to solve the problem?
We need to add the useEffect cleanup function for
BaseTwoFactorAuthFormcomponent where we will call the functionSession.clearAccountMessages();which gets executed on the unmount of the component.Result
Screen.Recording.2023-05-19.at.2.30.27.AM.mp4
melvin-bot commentedon May 22, 2023
@sonialiap Whoops! This issue is 2 days overdue. Let's get this updated quick!
MonilBhavsar commentedon May 23, 2023
Dupe of #19187