fix: Map is missing green line when splitting distance expense, confirm page is empty#81014
fix: Map is missing green line when splitting distance expense, confirm page is empty#81014robertjchen merged 5 commits intoExpensify:mainfrom
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ed2e592638
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| isFromGlobalCreate: transaction?.isFromGlobalCreate ?? isFromGlobalCreate, | ||
| currentIouRequestType: transaction?.iouRequestType, | ||
| newIouRequestType: newIOUType, | ||
| newIouRequestType: newIOUType === CONST.IOU.REQUEST_TYPE.DISTANCE ? CONST.IOU.REQUEST_TYPE.DISTANCE_MAP : newIOUType, |
There was a problem hiding this comment.
Preserve split distance draft data after mapping to DISTANCE_MAP
Mapping the split “distance” tab to DISTANCE_MAP here means the draft transaction’s iouRequestType is no longer DISTANCE. In createSplitsAndOnyxData the merge/pendingFields logic only runs when existingTransaction.iouRequestType === CONST.IOU.REQUEST_TYPE.DISTANCE (see src/libs/actions/IOU/index.ts around the isDistanceRequest check), so the draft distance data (waypoints/customUnit/routes) won’t be merged into the optimistic split transaction. That can leave the confirmation step without distance details/map (and lose them entirely if the API call fails) when splitting a distance expense.
Useful? React with 👍 / 👎.
trjExpensify
left a comment
There was a problem hiding this comment.
Yup, we want to show the route.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-02-04.at.18.37.24.mov |
@nkdengineer I am referring to making this change, if we can't then let's use your main solution. |
|
@Pujan92 Use distance map type causes a weird like this. That's why I used this solution as it's the simplest. Screen.Recording.2026-02-02.at.15.50.34.mov |
|
Let me know your thought again on which solution we should go. |
|
Ah, I see. Then we can use your main approach - "We should update isMapDistanceRequest to also return true if the iouRequestType is distance." |
|
@Pujan92 I updated. |
|
Bump @robertjchen for the review! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/robertjchen in version: 9.3.17-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.17-9 🚀
|

Explanation of Change
fix: Map is missing green line when splitting distance expense, confirm page is empty
Fixed Issues
$ #80714
PROPOSAL: #80714 (comment)
Tests
Offline tests
None
QA Steps
Same as test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2026-01-30.at.21.28.24.mov
Android: mWeb Chrome
Screen.Recording.2026-01-30.at.21.34.00.mov
iOS: Native
Screen.Recording.2026-01-30.at.21.28.56.mov
iOS: mWeb Safari
Screen.Recording.2026-01-30.at.21.33.37.mov
MacOS: Chrome / Safari
Screen.Recording.2026-01-30.at.21.33.04.mov