-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: Error is not removed from the report preview after paying an expense with empty field #71444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ense with empty field
|
@dukenv0307 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] |
| const reportTransactions = transactions ?? getReportTransactions(iouReportID); | ||
|
|
||
| return reportTransactions.some(hasMissingSmartscanFieldsTransactionUtils); | ||
| return reportTransactions.some((transaction) => hasMissingSmartscanFieldsTransactionUtils(transaction)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was changed due to a Typescript error. The reason is Array.some callback has the second parameter is index: number.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-09-29.at.09.45.31.movAndroid: mWeb ChromeScreen.Recording.2025-09-29.at.09.36.51.moviOS: HybridAppScreen.Recording.2025-09-29.at.09.46.05.moviOS: mWeb SafariScreen.Recording.2025-09-29.at.09.34.59.movMacOS: Chrome / SafariScreen.Recording.2025-09-29.at.09.31.30.movMacOS: DesktopScreen.Recording.2025-09-29.at.09.43.23.mov |
|
@nkdengineer Can you please check the failed tests? |
|
@nkdengineer Can you please merge main to fix the conflict? Thanks |
|
@dukenv0307 I updated. |
|
✋ 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/jasperhuangg in version: 9.2.23-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.2.23-3 🚀
|
Explanation of Change
fix: Error is not removed from the report preview after paying an expense with empty field
Fixed Issues
$ #69774
PROPOSAL: #69774 (comment)
Tests
Offline tests
None
QA Steps
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.2025-09-28.at.22.22.09.mov
Android: mWeb Chrome
Screen.Recording.2025-09-28.at.22.20.30.mov
iOS: Native
Screen.Recording.2025-09-28.at.22.24.21.mov
iOS: mWeb Safari
Screen.Recording.2025-09-28.at.22.23.10.mov
MacOS: Chrome / Safari
Screen.Recording.2025-09-28.at.22.17.42.mov
MacOS: Desktop
Screen.Recording.2025-09-28.at.22.26.59.mov