Skip unvalidated account check for Elsewhere payments in selection mode#87536
Skip unvalidated account check for Elsewhere payments in selection mode#87536puneetlath merged 1 commit intomainfrom
Conversation
shouldBlockAction in useSelectionModeReportActions was missing the paymentMethodType parameter added in #86714, causing it to always block unvalidated users even for Elsewhere payments. Co-authored-by: Situ Chandra Shil <situchan@users.noreply.github.com>
|
@MelvinBot Update |
|
Updated the Fixed Issues section to link #72502. |
|
@MelvinBot mark as ready for review |
|
Marked this PR as ready for review. |
|
@puneetlath 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppScreen.Recording.2026-04-10.at.2.02.07.AM.moviOS: mWeb SafariMacOS: Chrome / Safari |
Code ReviewVerdict: This PR looks good. The change is minimal, correct, and consistent with the existing pattern in Consistency check — all three locations now use the identical guard:
Call-site audit — no missed callers:
No issues found. |
|
Codex Review: Didn't find any major issues. Keep it up! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
🚧 @puneetlath has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/puneetlath in version: 9.3.58-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes required. This PR is a logic-only bug fix that modifies a guard condition in |
Explanation of Change
#86714 updated
checkForNecessaryActioninMoneyReportHeaderandSettlementButtonto accept an optionalpaymentMethodTypeparameter so that unvalidated users can still pay via "Elsewhere". However, #85796 introducedshouldBlockActioninuseSelectionModeReportActionswith the old behavior (nopaymentMethodTypeparameter), so the selection-mode pay flow still blocks unvalidated users for all payment types including Elsewhere.This PR:
paymentMethodTypeparameter toshouldBlockActionisUserValidatedcheck whenpaymentMethodTypeisELSEWHEREiouPaymentTypetoshouldBlockActioninonSelectionModePaymentSelectFixed Issues
$ #72502
Tests
Offline tests
N/A — this change only affects a guard condition and does not introduce offline-sensitive logic.
QA Steps
Same as Tests above.
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))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.Checks run
Screenshots/Videos
Android: Native
N/A — logic-only change with no UI modifications
Android: mWeb Chrome
N/A — logic-only change with no UI modifications
iOS: Native
N/A — logic-only change with no UI modifications
iOS: mWeb Safari
N/A — logic-only change with no UI modifications
MacOS: Chrome / Safari
N/A — logic-only change with no UI modifications