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
[$250] DEV: User is not navigated back after saving merchant #84160
BugSomething is broken. Auto assigns a BugZero manager.EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2
Version Number: Reproducible in staging?: Needs Reproduction (Unable to check in DEV) Reproducible in production?: Needs Reproduction (Unable to check in DEV) If this was caught during regression testing, add the test name, ID and link from BrowserStack: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@bernhardoj Slack conversation (hyperlinked to channel name): #expensify_bugs
Action Performed:
Open any workspace chat
Press + > Create expense > Manual
Enter any amount and go next
Press the Merchant field
Enter any value and press Save
Expected Result:
The user should be redirected back to the confirmation page
Actual Result:
The user stays on the merchant page
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Please re-state the problem that we are trying to solve in this issue.
When creating an expense via the Manual flow (workspace chat → + → Create expense → Manual → enter amount → next → Merchant field → enter value → Save), the user is not navigated back to the confirmation page after saving the merchant. The user stays stuck on the merchant page.
What is the root cause of that problem?
The updateMerchant submit handler in src/pages/iou/request/step/IOURequestStepMerchant.tsx (lines 106-134) never calls navigateBack() after saving the merchant value. The function saves the data to Onyx via setMoneyRequestMerchant() but then simply returns without triggering any navigation.
The navigateBack function is defined at line 83-85 and is wired to the header back button, but it is never invoked from the form submit handler.
This contrasts with other working step pages that all explicitly call navigateBack() at the end of their submit handlers:
IOURequestStepDate.tsx — updateDate calls navigateBack() in every code path (lines 81, 88, 114)
IOURequestStepTag.tsx — updateTag calls navigateBack() in every code path (lines 138, 158, 163)
IOURequestStepCategory.tsx — updateCategory calls navigateBack() in every code path (lines 129, 149, 163)
FormProvider does not auto-navigate after onSubmit — it only dismisses the keyboard and calls the callback (FormProvider.tsx:264). Navigation is the responsibility of each step's submit handler.
What changes do you think we should make in order to solve the problem?
Add navigateBack() calls to every code path in the updateMerchant function in src/pages/iou/request/step/IOURequestStepMerchant.tsx, following the pattern used by the Date, Tag, and Category steps:
After the split bill early return (line 112): add navigateBack() before return
After the no-change early return (line 116): add navigateBack() before return
At the end of the function (after line 133): add navigateBack()
Note:IOURequestStepDescription.tsx (lines 133-167) has the same missing navigateBack() pattern in its updateComment handler. It may be worth fixing both in the same PR.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, or @MelvinBot <your feedback> to refine this analysis.
changed the title [-]DEV: User is not navigated back after saving merchant[/-][+][$250] DEV: User is not navigated back after saving merchant[/+]on Mar 4, 2026
BugSomething is broken. Auto assigns a BugZero manager.EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2
Activity
melvin-bot commentedon Mar 4, 2026
Triggered auto assignment to @kadiealexander (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.MelvinBot commentedon Mar 4, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
When creating an expense via the Manual flow (workspace chat → + → Create expense → Manual → enter amount → next → Merchant field → enter value → Save), the user is not navigated back to the confirmation page after saving the merchant. The user stays stuck on the merchant page.
What is the root cause of that problem?
The
updateMerchantsubmit handler insrc/pages/iou/request/step/IOURequestStepMerchant.tsx(lines 106-134) never callsnavigateBack()after saving the merchant value. The function saves the data to Onyx viasetMoneyRequestMerchant()but then simply returns without triggering any navigation.The
navigateBackfunction is defined at line 83-85 and is wired to the header back button, but it is never invoked from the form submit handler.This contrasts with other working step pages that all explicitly call
navigateBack()at the end of their submit handlers:IOURequestStepDate.tsx—updateDatecallsnavigateBack()in every code path (lines 81, 88, 114)IOURequestStepTag.tsx—updateTagcallsnavigateBack()in every code path (lines 138, 158, 163)IOURequestStepCategory.tsx—updateCategorycallsnavigateBack()in every code path (lines 129, 149, 163)FormProviderdoes not auto-navigate afteronSubmit— it only dismisses the keyboard and calls the callback (FormProvider.tsx:264). Navigation is the responsibility of each step's submit handler.What changes do you think we should make in order to solve the problem?
Add
navigateBack()calls to every code path in theupdateMerchantfunction insrc/pages/iou/request/step/IOURequestStepMerchant.tsx, following the pattern used by the Date, Tag, and Category steps:navigateBack()beforereturnnavigateBack()beforereturnnavigateBack()Note:
IOURequestStepDescription.tsx(lines 133-167) has the same missingnavigateBack()pattern in itsupdateCommenthandler. It may be worth fixing both in the same PR.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR, or@MelvinBot <your feedback>to refine this analysis.melvin-bot commentedon Mar 4, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abzokhattab (
External)[-]DEV: User is not navigated back after saving merchant[/-][+][$250] DEV: User is not navigated back after saving merchant[/+]melvin-bot commentedon Mar 4, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022029236841107719748
situchan commentedon Mar 4, 2026
regression from #78291
m-natarajan commentedon Mar 4, 2026
@kadiealexander @abzokhattab @bernhardoj This is repro in staging and not repro in production, Adding the deploy blocker label
Recording.2475.mp4
13 remaining items
abzokhattab commentedon Mar 4, 2026
hmm okay then lets wait for @Julesssss to jump in here
abzokhattab commentedon Mar 5, 2026
@Julesssss The bot fixed both issues in the draft PR ... let me know if i shall proceed with it or should we do the revert
Julesssss commentedon Mar 5, 2026
PR that introduced this was reverted: #84307
Julesssss commentedon Mar 5, 2026
Awaiting QA testing
IuliiaHerets commentedon Mar 5, 2026
@Julesssss Issue is not repro on Web and Android app/Xiaomi Redmi Note 10 / Android 12
9.3.31-6 PR: 84307 Ad-Hoc
Screen.Recording.2026-03-05.at.23.49.41.mp4
Screenrecorder-2026-03-05-23-58-52-329.mp4