Repository navigation
Only offer personal US bank accounts as wallet transfer destinations - #107201
Conversation
Auth rejects TransferWalletBalance to a business bank account, but the transfer picker, the single-account auto-select and the selected account all read the unfiltered bank account list. Reuse the open personal US rule from hasExpensifyPaymentMethod so a business account is never offered.
|
@Krishna2323 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] |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Call getWalletTransferBankAccounts inside the functions that use it so React Compiler keeps caching TransferBalancePage, and build the test bank accounts with explicit fields and string keys for typecheck and lint.
|
@Krishna2323 this is ready to review |
|
@Krishna2323 kindly bump |
|
Reviewing...Sorry for the delay. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid_native.mp4Android: mWeb Chromeandroid_mWeb.mp4iOS: HybridAppios_native.mp4iOS: mWeb Safariios_mWeb.mp4MacOS: Chrome / Safariweb_chrome.mp4 |
|
@iwiznia I think we are good to go now. thanks |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 iwiznia 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.5.53-0 🚀
|
|
No help site update needed — this bug fix limits wallet transfers to already-supported personal US bank accounts, restoring expected behavior without adding a feature or making an existing article incorrect. |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.5.53-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
The wallet transfer picker listed every bank account, including business accounts that Auth rejects for wallet transfers, so choosing one failed with "Auth TransferWalletBalance returned an error". Transfer destinations are now limited to open personal US bank accounts, using the rule
hasExpensifyPaymentMethodalready applies.Fixed Issues
$ #92371
PROPOSAL: #92371 (comment)
Tests
Precondition: an account with an enabled wallet that has a balance, a personal US bank account and a business bank account (ideally two personal accounts, so the picker opens instead of auto-selecting).
Offline tests
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged theExpensify/designteam so the design team can review the changes.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
92371-android-app.mp4
Android: mWeb Chrome
92371-android-web.mp4
iOS: Native
92371-ios-app.mp4
iOS: mWeb Safari
92371-ios-web.mp4
MacOS: Chrome / Safari
92371-after-web.mp4