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.3.28.0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #74967
Email or phone of affected tester (no customers): ibellicotest+2250@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Motorola MotoG60 / Android 12 (Hybrid app) - Windows 11 / Chrome
App Component: Money Requests
Action Performed:
Prerequisite: Account has a workspace with "Distance Rates" enabled.
Prerequisite 2: At least one rate created different than default.
Prerequisite 3: Account has Self DM.
- Open the staging.new.expensify.com
- Navigate to Self DM.
- Create a map distance expense with a rate different than default.
- Open the report of the just created expense.
- Tap on "Report" field and select "Create Report"
- Navigate to workspace chat and reopen report.
- Note that distance rate and unit weren´t changed.
- Tap on "Report" field again and select "Remove from report"
- Navigate to Self DM and open report again.
- Note that distance rate and unit were changed.
Expected Result:
Distance rate and unit should remain the same after moving a distanc expense to Self DM again.
Actual Result:
Distance rate and unit are changed after a distance track expense is moved to Self DM again.
Workaround:
Unknown
Platforms:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
Screenshots/Videos
Bug7092482_1772508434916.Changes.mp4
Issue Owner
Current Issue Owner: @mallenexpensifyUpwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022028763042155909140
- Upwork Job ID: 2028763042155909140
- Last Price Increase: 2026-03-03
- Automatic offers:
- FitseTLT | Contributor | 110642887
Metadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Mar 3, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #74967
melvin-bot commentedon Mar 3, 2026
💬 A slack conversation has been started in #expensify-open-source
melvin-bot commentedon Mar 3, 2026
Triggered auto assignment to @JmillsExpensify (
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.github-actions commentedon Mar 3, 2026
👋 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:
OSBotify commentedon Mar 3, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #74967 - "Fix - [Unreported] Add distance rate to the distance expenses tracked in selfDM" by @FitseTLT (High confidence)
Related Issues: None
Recommendation: REVERT
PR #74967 introduced a logic error in
DistanceRequestUtils.tsthat causes distance expenses to lose their custom rate when moved back to Self DM (unreported). The bug is reproducible only on staging (new feature) and blocks the App deploy.Labels: DeployBlockerCash label should be kept. This is a frontend bug requiring an App PR revert.
📋 Detailed Analysis
Evidence
The issue reports that distance rate and unit change when a distance expense is removed from a report and moved back to Self DM. This matches exactly with the functionality added in PR #74967, which was merged on 2026-02-28 and is included in the current staging deploy (9.3.28-1).
The bug report states:
Verification
PR #74967 modifies
src/libs/DistanceRequestUtils.tsin thegetRate()function (lines 382-421). The specific problematic change is on lines 399-404:Before PR #74967:
After PR #74967:
Root Cause
The logic
(isUnreportedExpense ? undefined : defaultMileageRate)is flawed. When an expense is moved back to Self DM (becomes unreported):customUnitRateIDfrom when it was created with a non-default ratemileageRates?.[customUnitRateID] ?? mileageRatesForMovingExpenses?.[customUnitRateID]returns undefinedisUnreportedExpense = trueand returnsundefinedinstead of falling back to the default rateThe PR attempted to handle unreported expenses specially but inadvertently broke the case where a previously-reported expense with a custom rate is moved back to Self DM.
Reproduction
Following the exact steps from the issue:
The bug affects all platforms (Android App, Windows Chrome, MacOS Chrome/Safari) as reported in the issue.
OSBotify commentedon Mar 3, 2026
Label Decision
DeployBlockerCash: ✅ KEPT (correct)
DeployBlocker: ❌ Not present (correct)
This is a frontend bug caused by App PR #74967. The App deploy should remain blocked until this is resolved. The backend deploy can proceed unaffected.
Next Steps:
70 remaining items
melvin-bot commentedon Apr 7, 2026
@parasharrajat / @FitseTLT 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]
melvin-bot commentedon Apr 7, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)mallenexpensify commentedon Apr 16, 2026
I'm assuming payment will be handled as part of the above and that, if needed, regressions will be taken into account.
If anyone is due payment for this now, please comment. Otherwise I'll close it once I return to this issue. Thx
FitseTLT commentedon Apr 16, 2026
@mallenexpensify I am due payment here as a c+ it is independent.
mallenexpensify commentedon Apr 16, 2026
@FitseTLT can you please accept the job below? Please reply here and tag me once you have.
https://www.upwork.com/jobs/~022044889109394993247
If anyone else is due payment here, please comment. Thx
FitseTLT commentedon Apr 16, 2026
@mallenexpensify Accepted and no one else is due.
mallenexpensify commentedon Apr 16, 2026
Payment Summary
Contributor+: @FitseTLT paid via Upwork.
FitseTLT commentedon Apr 16, 2026
@mallenexpensify u should say paid 😄
mallenexpensify commentedon Apr 16, 2026
Thx, appreciated it @FitseTLT . The main problem is I use text expanders.