fix: Submit option is missing in More if retract and hold expense#70816
Conversation
|
Will get to this one tomorrow. |
Reviewer Checklist
Screenshots/Videos |
| @@ -174,7 +174,7 @@ function isSubmitAction( | |||
|
|
|||
| const hasReportBeenRetracted = hasReportBeenReopenedUtils(report, reportActions) || hasReportBeenRetractedUtils(report, reportActions); | |||
| if (hasReportBeenRetracted && isReportSubmitter) { | |||
There was a problem hiding this comment.
can we add this to this check instead ie. isSubmitAction
There was a problem hiding this comment.
@grgia I don't understand what you mean here. Can you elaborate more?
There was a problem hiding this comment.
you added the check to replace the early return.
return primaryAction !== CONST.REPORT.SECONDARY_ACTIONS.SUBMIT
but I'd prefer that we keep it clear it's an early return and add the check to the if
ie
if (hasReportBeenRetracted && isReportSubmitter && isSubmitAction) {
There was a problem hiding this comment.
@grgia We should return here and not run the code below if hasReportBeenRetracted && isReportSubmitter this condition is matched.
There was a problem hiding this comment.
yes, I agree, I'm just saying to move it into the if check and leave the return false
grgia
left a comment
There was a problem hiding this comment.
@nkdengineer left a comment elaborating
|
✋ 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/grgia in version: 9.2.28-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.2.28-5 🚀
|






Explanation of Change
fix: Submit option is missing in More if retract and hold expense
Fixed Issues
$ #70037
PROPOSAL: #70037 (comment)
Tests
Offline tests
Same
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-18.at.22.07.12.mov
Android: mWeb Chrome
Screen.Recording.2025-09-18.at.22.08.14.mov
iOS: Native
Screen.Recording.2025-09-18.at.22.09.02.mov
iOS: mWeb Safari
Screen.Recording.2025-09-18.at.22.09.48.mov
MacOS: Chrome / Safari
Screen.Recording.2025-09-18.at.22.05.17.mov
MacOS: Desktop
Screen.Recording.2025-09-18.at.22.06.22.mov