fix: Submit button is displayed on expense from archived workspace#86506
fix: Submit button is displayed on expense from archived workspace#86506grgia merged 1 commit intoExpensify:mainfrom
Conversation
|
@aimane-chnaif 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] |
trjExpensify
left a comment
There was a problem hiding this comment.
@luacmartins @JS00001 I don't understand this.
- User is removed from the workspace
- The report is moved to the user's personal policy (P.S we're changing that here to unreport expenses and delete the draft report instead)
- As the report is moved to the personal policy, why is it still showing in NewDot then?
Feels like this change might be redundant either way, so I'm somewhat inclined to :donothing:
|
Because the todo filters don't filter out personal policies, so we should add that. That said, I think the solution in this PR is incorrect. We should just add that condition here |
|
@nkdengineer please check above |
@luacmartins We changed multiple file because we create a new util to prevent the duplication code |
|
@nkdengineer I'm not sure that we need a new util. Why can't we just update the existing one adding the condition I mentioned above? |
|
@luacmartins It was a suggestion here. |
|
It was just for code dry. As logic was duplicated in multiple places. |
|
@aimane-chnaif I updated. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb Safari |
|
@trjExpensify need a rereview to unblock this |
@luacmartins are you saying to do that separately? |
|
@trjExpensify no, that was the root cause, which this PR is fixing. |
|
Oh cool 👍 |
|
@grgia all yours to merge |
|
🚧 @grgia has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.3.52-0 🚀
Bundle Size Analysis (Sentry): |
|
I reviewed the changes in this PR against the help site articles under No help site changes are required. This PR is a bug fix that adds a guard clause in |

Explanation of Change
fix: Submit button is displayed on expense from archived workspace
Fixed Issues
$ #82486
PROPOSAL: #82486 (comment)
Tests
Offline tests
QA Steps
Same as test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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.2026-03-27.at.14.08.42.mov
Android: mWeb Chrome
Screen.Recording.2026-03-27.at.14.05.08.mov
iOS: Native
Screen.Recording.2026-03-27.at.14.04.09.mov
iOS: mWeb Safari
Screen.Recording.2026-03-27.at.14.35.04.mov
MacOS: Chrome / Safari
Screen.Recording.2026-03-27.at.13.59.41.mov