Skip to content

[$250] DEV: User is not navigated back after saving merchant #84160

Closed

Description

@izarutskaya

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


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:

  1. Open any workspace chat
  2. Press + > Create expense > Manual
  3. Enter any amount and go next
  4. Press the Merchant field
  5. 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:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

w.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @abzokhattab
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022029236841107719748
  • Upwork Job ID: 2029236841107719748
  • Last Price Increase: 2026-03-04

Activity

  1. added
    Daily
    Bug
    on Mar 4, 2026
  2. melvin-bot commented on Mar 4, 2026

    @melvin-bot

    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.

  3. MelvinBot commented on Mar 4, 2026

    @MelvinBot
    Contributor

    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 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:

    1. After the split bill early return (line 112): add navigateBack() before return
    2. After the no-change early return (line 116): add navigateBack() before return
    3. 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.

  4. added
    External
    on Mar 4, 2026
  5. added
    Help Wanted
    on Mar 4, 2026
  6. melvin-bot commented on Mar 4, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @abzokhattab (External)

  7. 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
  8. melvin-bot commented on Mar 4, 2026

    @melvin-bot
  9. situchan commented on Mar 4, 2026

    @situchan
    Contributor

    regression from #78291

  10. m-natarajan commented on Mar 4, 2026

    @m-natarajan

    @kadiealexander @abzokhattab @bernhardoj This is repro in staging and not repro in production, Adding the deploy blocker label

    Recording.2475.mp4
  11. added
    DeployBlockerCash
    on Mar 4, 2026
  12. 13 remaining items

  13. abzokhattab commented on Mar 4, 2026

    @abzokhattab
    Contributor

    hmm okay then lets wait for @Julesssss to jump in here

  14. abzokhattab commented on Mar 5, 2026

    @abzokhattab
    Contributor

    @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

  15. removed their assignment
    on Mar 5, 2026
  16. added
    Daily
    and removed
    Hourly
    on Mar 5, 2026
  17. added
    Reviewing
    on Mar 5, 2026
  18. added
    Weekly
    and removed
    DeployBlockerCash
    Daily
    on Mar 5, 2026
  19. Julesssss commented on Mar 5, 2026

    @Julesssss
    Contributor

    PR that introduced this was reverted: #84307

  20. Julesssss commented on Mar 5, 2026

    @Julesssss
    Contributor

    Awaiting QA testing

  21. IuliiaHerets commented on Mar 5, 2026

    @IuliiaHerets

    @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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringExternalReviewingWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions