-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Settings - When user clicks 'Save' without changing their username "Your PayPal username was successfully saved" popup message appears #26889
Comments
Triggered auto assignment to @muttmuure ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When user clicks 'Save' without changing their username "Your PayPal username was successfully saved" popup message appears What is the root cause of that problem?We are not checking if previous value of name is same as new value before showing the popup. App/src/pages/settings/Wallet/AddPayPalMePage.js Lines 62 to 65 in c2dab6e
What changes do you think we should make in order to solve the problem?We shall add following check for checking if new value is different. const setPayPalMeData = useCallback(
(values) => {
if (lodashGet(props.payPalMeData, 'accountData.username', '') !== values.payPalMeUsername) {
User.addPaypalMeAddress(values.payPalMeUsername);
Growl.show(growlMessageOnSave, CONST.GROWL.SUCCESS, 3000);
}
Navigation.goBack(ROUTES.SETTINGS_WALLET);
},
[growlMessageOnSave, props.payPalMeData],
); This way we are only calling save method if title is different and display the message if it's different. What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
ResultScreencast.from.07-09-2023.16.18.24.webm |
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:
Expected Result:
The "Your PayPal username was successfully saved" popup message should not appear if there is no username change
Actual Result:
"Your PayPal username was successfully saved" popup message appears without the user changing anything
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.64-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
2023-08-29.12-32-59.mp4
20230906_232658.mp4
Expensify/Expensify Issue URL:
Issue reported by: @jo-ui
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693301255846379
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: