Fix: 'Add bank account' doesn't appear when Account B with no default WS/user currency USD#77479
Conversation
… WS/user currency USD
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@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] |
|
@cristipaval 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.
Joe had eyes on the parent issue for this 👍
|
|
||
| const isActivePolicyCurrencySupported = isCurrencySupportedForDirectReimbursement(activePolicy?.outputCurrency ?? ''); | ||
| const isUserCurrencySupported = isCurrencySupportedForDirectReimbursement(localCurrencyCode ?? ''); | ||
| const isUserCurrencySupported = isCurrencySupportedForDirectReimbursement(personalPolicy?.outputCurrency ?? ''); |
There was a problem hiding this comment.
@nyomanjyotisa shouldn't we default to USD when personalPolicy?.outputCurrency is missing?
There was a problem hiding this comment.
Oh yeah you're right, I'll change the default to CONST.CURRENCY.USD to keep it consistent with the codebase pattern
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppios_native.mp4Android: mWeb Chromeandroid_chrome.mp4iOS: HybridAppios_native_og.mp4iOS: mWeb Safariios_safari.mp4MacOS: Chrome / Safariweb_chrome.mp4 |
|
@Krishna2323 , did you approve this PR? |
|
@cristipaval approved. |
|
✋ 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/cristipaval in version: 9.2.79-0 🚀
|
|
@nyomanjyotisa QA team failed this PR with an original issue 1765935498508.Recording__1098.mp4 |
|
@IuliiaHerets The invoice sender's workspace should also have the default currency set to USD in this case, I believe We can update the Test Steps section if that is the correct steps |
|
Let us know if we need to recheck the PR |
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.2.81-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.81-5 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.81-5 🚀
|
|
@nyomanjyotisa, could you please update the Test Steps section according to this? Thanks! |
|
Sure, PR updated! |
Explanation of Change
Change
localCurrencyCodetopersonalPolicy?.outputCurrencyso that the default currency is determined by the user's preferred settings rather than their location. This change will make the "Add bank account" displayed when we select "Pay as business"Fixed Issues
$ #76596
PROPOSAL: #76596 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Precondition:
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
Android-Native.mp4
Android: mWeb Chrome
Android-mWeb.Chrome.mp4
iOS: Native
iOS-Native.mp4
iOS: mWeb Safari
iOS-mWeb.Safari.mp4
MacOS: Chrome / Safari
MacOS-Chrome.mp4