Fix - Expense - An expense can be send to an expired WS via FAB#57396
Conversation
|
@shubham1206agra 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] |
| hideProductTrainingTooltip(); | ||
| if (policyChatForActivePolicy?.policyID && shouldRestrictUserBillableActions(policyChatForActivePolicy.policyID)) { | ||
| Navigation.navigate(ROUTES.RESTRICTED_ACTION.getRoute(policyChatForActivePolicy.policyID)); | ||
| return; | ||
| } | ||
|
|
||
| const quickActionReportID = policyChatForActivePolicy?.reportID || generateReportID(); | ||
| startMoneyRequest(CONST.IOU.TYPE.SUBMIT, quickActionReportID, CONST.IOU.REQUEST_TYPE.SCAN, true); |
There was a problem hiding this comment.
@FitseTLT I don't think we need this since this logic is already present in selectOption
There was a problem hiding this comment.
selectOption checks on the quickActionReport so that's why I removed it in this case and made a check on policyChatForActivePolicy 👍
There was a problem hiding this comment.
I don't understand your question @shubham1206agra We can't use selectOption because here we need to check for shouldRestrictUserBillableActions for (policyChatForActivePolicy.policyID)
There was a problem hiding this comment.
For quickaction, we need to check on quickActionReport
There was a problem hiding this comment.
This is not a quick action. It is an edge case where there is no quick action then we construct a quick action from policyChatForActivePolicy.
There was a problem hiding this comment.
Oh. Then it's fine.
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-28.at.10.40.00.PM.movAndroid: mWeb ChromeScreen.Recording.2025-02-28.at.10.23.57.PM.moviOS: NativeScreen.Recording.2025-02-28.at.10.33.17.PM.moviOS: mWeb SafariScreen.Recording.2025-02-28.at.10.18.42.PM.movMacOS: Chrome / SafariScreen.Recording.2025-02-28.at.10.15.50.PM.movMacOS: DesktopScreen.Recording.2025-02-28.at.10.28.01.PM.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/mountiny in version: 9.1.8-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.8-1 🚀
|
Details
Fixed Issues
$ #56829
PROPOSAL: #56829 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
2025-02-25.15-32-25.mp4
Android: mWeb Chrome
2025-02-25.15-31-10.mp4
iOS: Native
2025-02-25.16-23-49.mp4
iOS: mWeb Safari
bil.iw.mp4
MacOS: Chrome / Safari
bil.w.mp4
MacOS: Desktop
bil.d.mp4