-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Log in - "Account closed successfully" message does not disappear until put your log in and click continue. #13506
Comments
Issue is not reproduced in production, attached video Recording.1860.mp4 |
Proposal: Issue: We set the onyx data for Solution: if (this.props.account.errors) {
Session.clearAccountMessages();
} We do the same thing with the account close data. We create this function which resets the data function resetAccountCloseData() {
Onyx.merge(ONYXKEYS.FORMS.CLOSE_ACCOUNT_FORM, CONST.DEFAULT_CLOSE_ACCOUNT_DATA);
} Then we use that function on user input to the email field. if (this.props.closeAccount.success) {
Session.resetAccountCloseData();
} Here is the full diff diff --git a/src/libs/actions/Session/index.js b/src/libs/actions/Session/index.js
index 13f1eadc5..4dd01d52f 100644
--- a/src/libs/actions/Session/index.js
+++ b/src/libs/actions/Session/index.js
@@ -388,6 +388,9 @@ function clearAccountMessages() {
isLoading: false,
});
}
+function resetAccountCloseData() {
+ Onyx.merge(ONYXKEYS.FORMS.CLOSE_ACCOUNT_FORM, CONST.DEFAULT_CLOSE_ACCOUNT_DATA);
+}
/**
* Calls change password and signs if successful. Otherwise, we request a new magic link
@@ -578,6 +581,7 @@ export {
clearSignInData,
cleanupSession,
clearAccountMessages,
+ resetAccountCloseData,
validateEmail,
authenticatePusher,
reauthenticatePusher,
diff --git a/src/pages/signin/LoginForm.js b/src/pages/signin/LoginForm.js
index e9813c3bf..bf6ec680b 100755
--- a/src/pages/signin/LoginForm.js
+++ b/src/pages/signin/LoginForm.js
@@ -111,6 +111,9 @@ class LoginForm extends React.Component {
if (this.props.account.errors) {
Session.clearAccountMessages();
}
+ if (this.props.closeAccount.success) {
+ Session.resetAccountCloseData();
+ }
}
/**
Video: Screen.Recording.2022-12-10.at.9.51.48.PM.mov |
Triggered auto assignment to @mallenexpensify ( |
Grabbing this one for #urgency |
Thanks for snagging this @Gonals , I'm going to hang tight as BZ for now, let me know if you need help testing or anything. |
Qa tested the CP PR and its a pass, removing deploy blocker label |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.38-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-12-20. 🎊 After the hold period, please check if any of the following need payment for this issue, and if so check them off after paying:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Testing to see if can close without checking boxes up top |
Looks like it, not sure need to address |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
5.Confirm the "Account closed successfully" message displays correctly
Expected Result:
"Account closed successfully" message should be disappear after start typing new email address
Actual Result:
"Account closed successfully" message does not disappear until put your log in and tap continue.
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.38.0
Reproducible in staging?: Yes
Reproducible in production?: No
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Recording.1861.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: