fix: Offline expense shows Outstanding from report but Paid from chat#79536
fix: Offline expense shows Outstanding from report but Paid from chat#79536mjasikowski merged 3 commits intoExpensify:mainfrom
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@eVoloshchak Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
| ? {lastActionType: CONST.REPORT.ACTIONS.TYPE.MARKED_REIMBURSED, stateNum: CONST.REPORT.STATE_NUM.APPROVED, statusNum: CONST.REPORT.STATUS_NUM.REIMBURSED} | ||
| : undefined), | ||
| hasOutstandingChildRequest: false, | ||
| lastActorAccountID: deprecatedCurrentUserPersonalDetails?.accountID, |
There was a problem hiding this comment.
Is there a reason we're using a deprecated variable?
There was a problem hiding this comment.
@eVoloshchak I just copied the value here.
App/src/libs/actions/IOU/index.ts
Lines 1905 to 1932 in e94f05d
There was a problem hiding this comment.
Yes, but this was the last place that was using deprecatedCurrentUserPersonalDetails, it would be perfect if we could get rid of it instead of increasing the usage (if possible, this isn't performance critical so not worth a refactor or anything of that nature). Could we pass the account id from the useCurrentUserPersonalDetails hook easily?
There was a problem hiding this comment.
@eVoloshchak Since we already used this variable in this function, I think it's not a problem if we use it again in this function. When we refactor this function, it doesn't increase the complexity. It's a problem if we use this variable in a function that didn't use this before
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-01-22.at.14.34.17.movAndroid: mWeb ChromeScreen.Recording.2026-01-22.at.14.35.31.moviOS: HybridAppScreen.Recording.2026-01-22.at.14.29.04.moviOS: mWeb SafariScreen.Recording.2026-01-22.at.14.30.55.movMacOS: Chrome / SafariScreen.Recording.2026-01-22.at.14.23.18.mov |
|
✋ 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/mjasikowski in version: 9.3.7-0 🚀
|
|
This PR failing because of an issue in offline mode |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.7-3 🚀
|
Explanation of Change
fix: Offline expense shows Outstanding from report but Paid from chat
Fixed Issues
$ #79027
PROPOSAL: #79027 (comment)
Tests
Offline tests
Same
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-14.at.17.56.45.mov
Android: mWeb Chrome
Screen.Recording.2026-01-14.at.18.00.27.mov
iOS: Native
Screen.Recording.2026-01-14.at.17.58.57.mov
iOS: mWeb Safari
Screen.Recording.2026-01-14.at.17.57.58.mov
MacOS: Chrome / Safari
Screen.Recording.2026-01-14.at.17.54.23.mov