Fix approve button is not shown when there are violations#68862
Conversation
|
@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] |
|
@bernhardoj ts checks are failed |
|
Fixed |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-08-21.at.12.20.57.movAndroid: mWeb ChromeScreen.Recording.2025-08-21.at.12.06.46.moviOS: HybridAppScreen.Recording.2025-08-21.at.16.19.15.moviOS: mWeb SafariScreen.Recording.2025-08-21.at.12.05.03.movMacOS: Chrome / SafariScreen.Recording.2025-08-21.at.12.01.39.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/thienlnam in version: 9.1.98-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.98-12 🚀
|
| reportID: string; | ||
| policyID: string | undefined; | ||
| action: ValueOf<typeof CONST.SEARCH.ACTION_TYPES>; | ||
| allActions: Array<ValueOf<typeof CONST.SEARCH.ACTION_TYPES>>; |
There was a problem hiding this comment.
BTW I don't think this was the correct solution. We should not have added this key to Onyx
There was a problem hiding this comment.
SelectedReports is not an Onyx data. It's just a derived value.

Explanation of Change
Fixed Issues
$ #67416
PROPOSAL: #67416 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
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))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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop