diff --git a/src/pages/ReimbursementAccount/ReimbursementAccountPage.tsx b/src/pages/ReimbursementAccount/ReimbursementAccountPage.tsx index ac954c3033c..47d30ea2009 100644 --- a/src/pages/ReimbursementAccount/ReimbursementAccountPage.tsx +++ b/src/pages/ReimbursementAccount/ReimbursementAccountPage.tsx @@ -144,6 +144,7 @@ function ReimbursementAccountPage({route, policy}: ReimbursementAccountPageProps const [onfidoToken = ''] = useOnyx(ONYXKEYS.ONFIDO_TOKEN); const [isLoadingApp = false] = useOnyx(ONYXKEYS.IS_LOADING_APP); const [account] = useOnyx(ONYXKEYS.ACCOUNT); + const [isDebugModeEnabled] = useOnyx(ONYXKEYS.USER, {selector: (user) => !!user?.isDebugModeEnabled}); const policyName = policy?.name ?? ''; const policyIDParam = route.params?.policyID ?? '-1'; @@ -438,8 +439,8 @@ function ReimbursementAccountPage({route, policy}: ReimbursementAccountPageProps const policyCurrency = policy?.outputCurrency ?? ''; // TODO once nonUSD flow is complete update the flag below to reflect all supported currencies, this will be updated in - https://github.com/Expensify/App/issues/50912 const hasUnsupportedCurrency = policyCurrency !== CONST.CURRENCY.USD; - // TODO remove isDevelopment flag once nonUSD flow is complete, this will be updated in - https://github.com/Expensify/App/issues/50912 - const hasForeignCurrency = SUPPORTED_FOREIGN_CURRENCIES.includes(policyCurrency) && isDevelopment; + // TODO remove isDevelopment and isDebugModeEnabled flags once nonUSD flow is complete, this will be updated in - https://github.com/Expensify/App/issues/50912 + const hasForeignCurrency = SUPPORTED_FOREIGN_CURRENCIES.includes(policyCurrency) && (isDevelopment || isDebugModeEnabled); if (userHasPhonePrimaryEmail) { errorText = translate('bankAccount.hasPhoneLoginError');