Repository navigation
Description
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.2.99-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #69326
Email or phone of affected tester (no customers): sdjkdsnsndoisjoidsjdoi@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.1 / Chrome
App Component: Money Requests
Action Performed:
- Go to staging.new.expensify.com
- Go to workspace chat.
- Click + > Create expense > Scan.
- Upload two receipts.
- On confirm page, click on the receipt.
- Click 3-dot menu > Replace.
- Replace the receipt.
BUG 1: The second receipt disappears after replacing the first receipt. - Close the RHP.
- Click + > Create expense > Scan.
- Upload two receipts.
- On confirm page, click next arrow on the top right to navigate to the second receipt.
- Click on the receipt.
- Click 3-dot menu > Replace.
- Replace the receipt.
BUG 2: To field disappears. Amount field changes to 0.00.
Expected Result:
BUG 1: After replacing the first receipt, the second receipt should remain unaffected.
BUG 2: After replacing the second receipt, To field will not disappear. Amount field will not show up because this is a scan expense.
Actual Result:
BUG 1: The second receipt disappears after replacing the first receipt.
BUG 2: After replacing the second receipt, To field disappears, Amount field changes to 0.00.
Workaround:
Unknown
Platforms:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
Screenshots/Videos
Bug7045963_1768150536081.1.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022010878582663122873
- Upwork Job ID: 2010878582663122873
- Last Price Increase: 2026-01-13
Activity
melvin-bot commentedon Jan 12, 2026
Triggered auto assignment to @RachCHopkins (
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.bernhardoj commentedon Jan 12, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
When we edit the receipt, if the multi scan is not enabled, then it will clear all the previous drafts before setting a new one.
App/src/pages/iou/request/step/IOURequestStepScan/index.tsx
Lines 652 to 669 in 4c05547
On the start page, we pass the props based on the transaction drafts length.
App/src/pages/iou/request/IOURequestStartPage.tsx
Lines 279 to 286 in 4c05547
App/src/pages/iou/request/IOURequestStartPage.tsx
Lines 78 to 82 in 4c05547
But when editing, the scan page is in its own screen, so no props are passed, thus
isMultiScanEnabledis false. We probably hold the state in the start page component because we need to clear the state when the tab changes.App/src/pages/iou/request/IOURequestStartPage.tsx
Lines 142 to 148 in 4c05547
What changes do you think we should make in order to solve the problem?
We need to check if
isStartingScanis true here too which indicates that this is from the start page.App/src/pages/iou/request/step/IOURequestStepScan/index.tsx
Lines 652 to 654 in d335917
What alternative solutions did you explore? (Optional)
We need to move the state down to the scan page, both
indexandindex.nativefiles, so we won't need to pass down the props anymore.Then we can remove
setIsMultiScanEnabledcall here,App/src/pages/iou/request/IOURequestStartPage.tsx
Lines 142 to 149 in 4c05547
And to disable the multi scan when switching tabs, we can forward a ref and expose the set state function.
RachCHopkins commentedon Jan 13, 2026
Can repro perfectly on Safari - great repro steps thank you @mitarachim !!
[-]Multi scan - After replacing receipt, other receipt disappears, or confirm page becomes broken[/-][+][$250] Multi scan - After replacing receipt, other receipt disappears, or confirm page becomes broken[/+]melvin-bot commentedon Jan 13, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022010878582663122873
melvin-bot commentedon Jan 13, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @truph01 (
External)yatin-italy commentedon Jan 13, 2026
Proposal
Restate the problem this issue is trying to solve.
Replacing a receipt from the scan screen clears sibling drafts and rebuilds the draft for the replaced receipt, wiping To/Amount. This happens because the scan screen defaults to single-scan when opened alone.
What is the root cause of that problem?
isMultiScanEnabledis lost when the scan page mounts standalone. It defaults tofalse, which triggersremoveDraftTransactions(true)and rebuilds a new optimistic transaction instead of using the existing draft.What changes do you think we should make in order to solve the problem?
isMultiScanEnabledfrom existing drafts:What alternative solutions did you explore? (Optional)
None
Fix Expensify#79324: preserve multi-scan drafts on replace
18 remaining items
melvin-bot commentedon Feb 13, 2026
This issue has not been updated in over 15 days. @RachCHopkins, @roryabraham, @bernhardoj, @truph01 eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
[-][$250] Multi scan - After replacing receipt, other receipt disappears, or confirm page becomes broken[/-][+][PAY][$250] Multi scan - After replacing receipt, other receipt disappears, or confirm page becomes broken[/+]roryabraham commentedon Feb 13, 2026
@RachCHopkins payment breakdown:
RachCHopkins commentedon Feb 19, 2026
Payment Summary:
Upwork job here
RachCHopkins commentedon Feb 19, 2026
The Upwork post has been closed. 🟢 to @bernhardoj and @truph01 to request payment via NewDot.
bernhardoj commentedon Feb 19, 2026
Requested in ND.
garrettmknight commentedon Feb 20, 2026
$250 approved for @bernhardoj
JmillsExpensify commentedon Apr 5, 2026
$250 approved for @truph01