Fix: Expensify Cards incorrectly display workspace default currency instead of card currency #65481
Merged
Merged
Conversation
|
@DylanDylann 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] |
Contributor
|
@allgandalf Please complete your PR
|
Contributor
Author
|
@DylanDylann ready for re-review |
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-07-07.at.16.31.17.movAndroid: mWeb ChromeScreen.Recording.2025-07-07.at.16.27.12.moviOS: HybridAppScreen.Recording.2025-07-07.at.16.31.45.moviOS: mWeb SafariScreen.Recording.2025-07-07.at.16.28.13.movMacOS: Chrome / SafariScreen.Recording.2025-07-07.at.16.17.54.movMacOS: DesktopScreen.Recording.2025-07-07.at.16.25.10.mov |
mountiny
previously approved these changes
Jul 7, 2025
| const policyCurrency = useMemo(() => policy?.outputCurrency ?? CONST.CURRENCY.USD, [policy]); | ||
| const [cardSettings] = useOnyx(`${ONYXKEYS.COLLECTION.PRIVATE_EXPENSIFY_CARD_SETTINGS}${workspaceAccountID}`); | ||
| const [cardManualBilling] = useOnyx(`${ONYXKEYS.COLLECTION.PRIVATE_EXPENSIFY_CARD_MANUAL_BILLING}${workspaceAccountID}`); | ||
| const policyCurrency = CONST.CURRENCY.USD; |
Contributor
There was a problem hiding this comment.
@allgandalf Can you please add an explanation comment here that this is now temporary as at the moment the expensify cards are only available in USD
mountiny
approved these changes
Jul 7, 2025
mountiny
reviewed
Jul 7, 2025
| const [cardSettings] = useOnyx(`${ONYXKEYS.COLLECTION.PRIVATE_EXPENSIFY_CARD_SETTINGS}${workspaceAccountID}`); | ||
| const [cardManualBilling] = useOnyx(`${ONYXKEYS.COLLECTION.PRIVATE_EXPENSIFY_CARD_MANUAL_BILLING}${workspaceAccountID}`); | ||
| // Currently Expensify Cards only support USD, once support for more currencies is implemented, we will need to update this | ||
| const policyCurrency = CONST.CURRENCY.USD; |
Contributor
There was a problem hiding this comment.
Noted this in DM, but can you please update this to settlementCurrency?
mountiny
reviewed
Jul 7, 2025
|
|
||
| const policyCurrency = useMemo(() => policy?.outputCurrency ?? CONST.CURRENCY.USD, [policy]); | ||
| // Currently Expensify Cards only support USD, once support for more currencies is implemented, we will need to update this | ||
| const policyCurrency = CONST.CURRENCY.USD; |
54 tasks
Contributor
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.77-1 🚀
|
8 tasks
8 tasks
Contributor
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.77-2 🚀
|
16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
Fixed Issues
$ #64644
PROPOSAL: #64644 (comment)
Tests
Offline tests
QA Steps
Precondition:
Verify that the currency is still displayed as USD $
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))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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-07-04.at.12.13.54.PM.mov
MacOS: Desktop