Skip to content

Commit

Permalink
fix fallback to personal policy
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDylann committed Jul 17, 2024
1 parent f2e4293 commit 2326651
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/pages/iou/request/step/IOURequestStepAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import * as TransactionEdit from '@libs/actions/TransactionEdit';
import * as CurrencyUtils from '@libs/CurrencyUtils';
import Navigation from '@libs/Navigation/Navigation';
import * as OptionsListUtils from '@libs/OptionsListUtils';
import * as PolicyUtils from '@libs/PolicyUtils';
import * as ReportUtils from '@libs/ReportUtils';
import * as TransactionUtils from '@libs/TransactionUtils';
import {getRequestType} from '@libs/TransactionUtils';
Expand Down Expand Up @@ -134,7 +135,16 @@ function IOURequestStepAmount({

const navigateToCurrencySelectionPage = () => {
Navigation.navigate(
ROUTES.MONEY_REQUEST_STEP_CURRENCY.getRoute(action, iouType, transactionID, reportID, backTo ? 'confirm' : '', currency, Navigation.getActiveRouteWithoutParams(), policy?.id),
ROUTES.MONEY_REQUEST_STEP_CURRENCY.getRoute(
action,
iouType,
transactionID,
reportID,
backTo ? 'confirm' : '',
currency,
Navigation.getActiveRouteWithoutParams(),
policy?.id || PolicyUtils.getPersonalPolicy()?.id,
),
);
};

Expand Down

0 comments on commit 2326651

Please sign in to comment.