Skip to content

Commit

Permalink
feat: Make flow visible in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMuzyk committed Oct 24, 2024
1 parent 2ae73d8 commit 155a3ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/ReimbursementAccount/ReimbursementAccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 155a3ca

Please sign in to comment.