Skip to content

[Due for payment 2026-06-17] Expense - (none) is populated in Merchant field after saving empty merchant #90577

Closed

Description

@mitarachim

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: 9.3.74-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #87920
Email or phone of affected tester (no customers): sjdojsodjniodnsjioj@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.2 / Chrome
App Component: Money Requests

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log in with Gmail account.
  3. Open self DM or DM with any user.
  4. Click + > Create expense > Manual.
  5. Enter amount > Next.
  6. On confirm page, click Merchant.
  7. Click Save without entering merchant.
  8. Click Create expense.

Expected Result:

In Step 6, (none) will not be populated in Merchant field after saving empty merchant.

Actual Result:

In Step 6, (none) is populated in Merchant field after saving empty merchant.
In Step 7, expense cannot be created due to (none) in merchant field.

This issue also happens after removing merchant.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7153433_1778707520537.01.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on May 13, 2026
  2. melvin-bot commented on May 13, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #87920

  3. melvin-bot commented on May 13, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  4. github-actions commented on May 13, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. OSBotify commented on May 13, 2026

    @OSBotify
    Contributor

    Investigation Summary

    Classification: Frontend bug
    Causing PR: #87920 - "Feat: Manual expense flow UI refactor - r3" by @ChavdaSachin (High confidence)
    Related Issues: None

    Recommendation: REVERT

    PR #87920 introduced a regression in the old (non-new-manual-flow) expense creation path by changing setMoneyRequestMerchant to always set isMerchantSet: true, but the display logic in MerchantField.tsx now depends on isMerchantSet being false to suppress the "(none)" placeholder value from being shown to the user.

    Assigned: @ChavdaSachin (PR author), @ShridharGoel and @puneetlath (approving reviewers)
    Labels: DeployBlockerCash kept (App PR caused the issue). DeployBlocker removed — this is a frontend bug, no backend changes needed.

    Detailed Analysis

    Evidence

    • The bug is staging-only (not reproducible in production), which is consistent with it being introduced by a PR in the current staging deploy.
    • melvin-bot already assigned the issue to the author of PR Feat: Manual expense flow UI refactor - r3 #87920, which is listed in the StagingDeployCash checklist for version 9.3.74-0.
    • PR Feat: Manual expense flow UI refactor - r3 #87920 modifies src/components/MoneyRequestConfirmationList/sections/MerchantField.tsx and src/libs/actions/IOU/index.ts — the exact code paths involved in the merchant field behavior on the confirm page.

    Verification

    Affected file: src/components/MoneyRequestConfirmationList/sections/MerchantField.tsx

    PR #87920 modifies this file directly. The PR also modifies src/libs/actions/IOU/index.ts.

    Confirmation that the PR modifies these files:

    • src/components/MoneyRequestConfirmationList/sections/MerchantField.tsx — modified
    • src/libs/actions/IOU/index.ts — modified

    Root Cause

    PR #87920 introduced a new isMerchantSet boolean flag on the Transaction type to distinguish between an empty merchant (field never touched) and a merchant explicitly set to the CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT placeholder "(none)" in the new manual expense flow.

    Two interacting changes caused the regression:

    1. setMoneyRequestMerchant now always sets isMerchantSet: true (in src/libs/actions/IOU/index.ts):

      Onyx.merge(..., {merchant, isMerchantSet: true});
      
    2. IOURequestStepMerchant.tsx (old flow) saves empty merchant as PARTIAL_TRANSACTION_MERCHANT (i.e. "(none)"):

      setMoneyRequestMerchant(transactionID, newMerchant || CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT, true, ...)
      

      This is the step page users reach when they tap the Merchant row on the confirm page in the old flow.

    3. MerchantField.tsx display logic now checks isMerchantSet to decide whether to show the value:

      const displayMerchantValue = !transaction?.isMerchantSet ? '' : merchantValue;
      

    When the user opens the Merchant step page (old flow), clears the field, and taps Save:

    • IOURequestStepMerchant calls setMoneyRequestMerchant(transactionID, '(none)', true, ...).
    • This sets merchant = '(none)' and isMerchantSet = true.
    • MerchantField then renders displayMerchantValue = '(none)' because isMerchantSet is true.
    • The confirm page now shows "(none)" in the Merchant field, and attempting to submit fails with a validation error because "(none)" is treated as an invalid merchant value.

    The isMerchantSet flag was designed for the new manual expense flow where clearing the text input calls clearMoneyRequestMerchant (which sets isMerchantSet: false). The old step-page flow was not updated to use clearMoneyRequestMerchant when the merchant is empty, so it falls into the broken path.

  6. removed
    DeployBlocker
    on May 13, 2026
  7. 19 remaining items

  8. melvin-bot commented on Jun 10, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  9. melvin-bot commented on Jun 10, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.1-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 2026-06-17. 🎊

    For reference, here are some details about the assignees on this issue:

  10. melvin-bot commented on Jun 10, 2026

    @melvin-bot

    @ShridharGoel / @ChavdaSachin The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]

  11. melvin-bot commented on Jun 15, 2026

    @melvin-bot

    @ShridharGoel Eep! 4 days overdue now. Issues have feelings too...

  12. added
    Awaiting Payment
    on Jun 16, 2026
  13. melvin-bot commented on Jun 16, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  14. melvin-bot commented on Jun 16, 2026

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@mallenexpensify)

    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  15. mallenexpensify commented on Jun 18, 2026

    @mallenexpensify
    Contributor

    @ShridharGoel I'm assuming this is a regression and not due payment, comment if you disagree, if not, I'll close in a few days.

  16. ShridharGoel commented on Jun 18, 2026

    @ShridharGoel
    Contributor

    Yes, this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions