fix: Revisiting create expense page from confirm details page changes the selected user#73354
Conversation
|
@QichenZhu 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] |
Codecov Report❌ Patch coverage is
... and 7 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
Bug: Submitting an expense to self DM fails
Expected result: Expense is created successfully Actual result: Expense creation fails with an unexpected error, and the amount becomes negative Simulator.Screen.Recording.-.iPhone.17.-.2025-10-24.at.16.59.25.mov |
|
@QichenZhu Fixed the issue with submitting an expense to self DM and a few other related problems I found. Everything now works as expected fix.mp4 |
|
Friendly bump @QichenZhu |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-native.webmAndroid: mWeb Chromeandroid-web.webmiOS: HybridAppios-native.moviOS: mWeb Safariios-web.movMacOS: Chrome / Safarimac-web.movMacOS: Desktopmac-desktop.mov |
@ganzz4, the fix looks good, thanks for that. However, according to the guidelines we should always avoid decreasing code coverage.
|
…for testability and add unit tests
|
@QichenZhu I've extracted the logic into a testable function and added unit tests for it |
|
✋ 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/nkuoch in version: 9.2.47-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.2.47-1 🚀
|
Explanation of Change
Fixed Issues
$ #72593
PROPOSAL: #72593 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Pre-condition: Have 2 workspaces
Expected Result:
Revisiting create expense page from confirm details page musnt change the selected user
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
android_native.mp4
Android: mWeb Chrome
android_mweb.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_mweb.mp4
MacOS: Chrome / Safari
macos_safari.mp4
MacOS: Desktop
macos_desktop.mp4