-
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
Split Bill - Incorrect back button functionality doesn't allow to cancel Split Bill in the group #20743
Comments
Triggered auto assignment to @johncschuster ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The problem we are aiming to address in this issue is that when users attempt to exit the split bill flow from the money request confirm page by clicking the back button, they find themselves unable to leave the split bill flow. What is the root cause of that problem?The root cause of this issue lies in the code within
prevents users from exiting the split bill flow if they click the back button multiple times from the confirm page. What changes do you think we should make in order to solve the problem?To resolve this problem, I recommend making the following changes in
By including this code snippet within the What alternative solutions did you explore? (Optional)None Screen.Recording.2023-06-14.at.2.06.08.PM.mov |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Split Bill - Incorrect back button functionality doesn't allow to cancel Split Bill in the group What is the root cause of that problem?Here in App/src/pages/iou/MoneyRequestModal.js Lines 207 to 219 in 20f6ae7
we call setPreviousStepIndex(currentStepIndex);
setCurrentStepIndex(currentStepIndex - 1); so if we in step 1 and user click back, the result will be previousStepIndex = 1;
setCurrentStepIndex = 0; This is cause infinite loop, the result should be What changes do you think we should make in order to solve the problem?The setPreviousStepIndex(currentStepIndex);
setPreviousStepIndex(currentStepIndex - 2); // <<<<<<<<<<<<<<<<<<<<<
setCurrentStepIndex(currentStepIndex - 1); result close.Screen.Recording.2023-06-14.at.3.30.06.PM.movresult go back then close.Screen.Recording.2023-06-14.at.3.30.21.PM.movresult edit amount then go back then close.Screen.Recording.2023-06-14.at.3.32.46.PM.movWhat alternative solutions did you explore? (Optional) |
@johncschuster Eep! 4 days overdue now. Issues have feelings too... |
@bernhardoj Thanks for calling out that this is a duplicate! I didn't think to use the keywords, "infinite loop" to locate a previously created issue. Would you say we can close this issue then? |
Yes, I think we can close this one |
Thanks! Doing it. |
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:
User can exit Split Bill flow
Actual Result:
User is blocked within Split Bill flow
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.27.4
Reproducible in staging?: yes
**Reproducible in production?:**yes
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
Bug6092560_video_29__1_.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: