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
[Due for payment 2026-01-28] [$250] Expense-Rejected expense preview total resets to 0 after rejection & update only after revisit #78577
There are other bugs too, like report preview action is created for each rejected transaction and the report total will take the last transaction amount, but it's out of scope of this issue.
What changes do you think we should make in order to solve the problem?
changed the title [-]Expense-Rejected expense preview total resets to 0 after rejection & update only after revisit[/-][+][$250] Expense-Rejected expense preview total resets to 0 after rejection & update only after revisit[/+]on Jan 6, 2026
@bernhardoj Thanks for your proposal, but can you still reproduce this on the latest main? On the latest main, after rejecting, I only see an issue with duplicated report groups.
changed the title [-][$250] Expense-Rejected expense preview total resets to 0 after rejection & update only after revisit[/-][+][Due for payment 2026-01-28] [$250] Expense-Rejected expense preview total resets to 0 after rejection & update only after revisit[/+]on Jan 21, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.5-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@suneox / @bernhardoj@sonialiap 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]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
Create a workspace with Delayed Submissions and Approvals enabled
Have a workspace owner and a submitter user
Submitter is logged into the app
Test:
As submitter, create 3 separate expenses in a workspace chat
Submit all 3 expenses as a single report
Open the submitted expense report
Tap "Submit" button
Select 2 of the 3 expenses for rejection
Choose "Reject" from the dropdown menu
Enter a rejection reason and complete the rejection flow
Navigate to the newly created rejected expense report
Expected Result: Rejected expense report preview displays the correct total amount
Activity
melvin-bot commentedon Dec 30, 2025
Triggered auto assignment to @sonialiap (
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 Dec 31, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Rejected expense report shows 0 amount on the report preview.
What is the root cause of that problem?
When we reject expenses, we create a new report if we don't have one yet. The problem is, on success we use a SET that clears the report.
App/src/libs/actions/IOU/index.ts
Lines 13618 to 13632 in 1d1ea3d
So, the amount shown is 0.
There are other bugs too, like report preview action is created for each rejected transaction and the report total will take the last transaction amount, but it's out of scope of this issue.
What changes do you think we should make in order to solve the problem?
We need to use MERGE instead of SET.
App/src/libs/actions/IOU/index.ts
Lines 13618 to 13632 in 1d1ea3d
melvin-bot commentedon Jan 3, 2026
@sonialiap Whoops! This issue is 2 days overdue. Let's get this updated quick!
[-]Expense-Rejected expense preview total resets to 0 after rejection & update only after revisit[/-][+][$250] Expense-Rejected expense preview total resets to 0 after rejection & update only after revisit[/+]melvin-bot commentedon Jan 6, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022008463768715252552
melvin-bot commentedon Jan 6, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @suneox (
External)suneox commentedon Jan 8, 2026
@bernhardoj Thanks for your proposal, but can you still reproduce this on the latest main? On the latest main, after rejecting, I only see an issue with duplicated report groups.
v9.2.96-1
CleanShot.2026-01-09.at.00.30.10.mp4
v9.2.94-0
CleanShot.2026-01-09.at.00.23.51.mp4
19 remaining items
[-][$250] Expense-Rejected expense preview total resets to 0 after rejection & update only after revisit[/-][+][Due for payment 2026-01-28] [$250] Expense-Rejected expense preview total resets to 0 after rejection & update only after revisit[/+]melvin-bot commentedon Jan 21, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jan 21, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.5-7 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-01-28. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jan 21, 2026
@suneox / @bernhardoj @sonialiap 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]
suneox commentedon Jan 28, 2026
BugZero Checklist
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/70960/changes#r2737383816
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
Test:
Expected Result: Rejected expense report preview displays the correct total amount
Do we agree 👍 or 👎
sonialiap commentedon Feb 2, 2026
Payment summary:
@suneox $250 please request in NewDot
@bernhardoj $250 please request in NewDot
Apologies for the delay in payment, I was OOO for two weeks and apparently missed adding a BZ buddy to this issue
bernhardoj commentedon Feb 3, 2026
Requested in ND.
trjExpensify commentedon Feb 3, 2026
approved $250 for @suneox.
garrettmknight commentedon Mar 6, 2026
$250 approved for @bernhardoj