fix: Endless loading on empty report after dismissing error when paying with Wallet - #81016
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.
|
|
@nkdengineer, were we able to fix the ESLint warnings and add a unit test? Thank you. |
JmillsExpensify
left a comment
There was a problem hiding this comment.
Ultimately good polish. Product approved.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppUploading 81016_android_native.mov… Android: mWeb ChromeUploading 81016_android_web.mov… iOS: HybridAppUploading 81016_ios_native.mov… iOS: mWeb SafariUploading 81016_ios_web.mov… MacOS: Chrome / SafariUploading 81016_web_chrome.mov… |
|
|
||
| const dismissError = useCallback(() => { | ||
| const transactionID = isMoneyRequestAction(action) ? getOriginalMessage(action)?.IOUTransactionID : undefined; | ||
| if (isSendingMoney && transactionID) { |
There was a problem hiding this comment.
Can we change this to
| if (isSendingMoney && transactionID) { | |
| if (isSendingMoney && transactionID && reportID) { |
and avoid sending the default ?? '' to cleanUpMoneyRequest?
|
✋ 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/NikkiWines in version: 9.3.11-36 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.3.12-1 🚀
|
Explanation of Change
Fixed Issues
$ #80517
PROPOSAL: #80517 (comment)
Tests
Preconditions:
Set the test account as follows:
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.45.31.mov
Android: mWeb Chrome
Screen.Recording.2026-01-30.at.21.44.07.mov
iOS: Native
Screen.Recording.2026-01-30.at.21.46.23.mov
iOS: mWeb Safari
Screen.Recording.2026-01-30.at.21.45.00.mov
MacOS: Chrome / Safari
Screen.Recording.2026-01-30.at.21.42.38.mov