Fix: Approve button does not show 👍 Approved after clicking Approve button#72082
Conversation
|
@hoangzinh 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] |
| if (isPaidAnimationRunning) { | ||
| // We want to have action displayed for either paid or approved animations | ||
| // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing | ||
| if (isPaidAnimationRunning || isApprovedAnimationRunning) { |
There was a problem hiding this comment.
Could you elaborate on why we don't use ?? here?
There was a problem hiding this comment.
I copied this logic from the previous code, so don't have much context here, but i think the issue here is that both the values above are booleans and not strings so my guess is that ?? won't work here, if you think we should try with ?? lmk i can work on this later today
There was a problem hiding this comment.
I see. Let keep previous code then.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-10-15.at.15.31.58.android.movAndroid: mWeb ChromeScreen.Recording.2025-10-15.at.14.58.11.android.chrome.moviOS: HybridAppScreen.Recording.2025-10-15.at.15.39.09.ios.moviOS: mWeb SafariScreen.Recording.2025-10-15.at.15.37.13.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2025-10-15.at.14.53.04.web.movMacOS: DesktopScreen.Recording.2025-10-15.at.14.55.44.desktop.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/Valforte in version: 9.2.32-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.32-6 🚀
|
Explanation of Change
Fixed Issues
$ #70630
PROPOSAL: N/A
Tests
Offline tests
QA Steps
Test:
Verify that Approve button will show 👍 Approved after clicking Approve button.
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-10-08.at.5.05.55.PM.mov
MacOS: Desktop