@@ -3022,7 +3022,7 @@ function getAddExpenseDropdownOptions({
30223022 if (
30233023 policy &&
30243024 policy.type !== CONST.POLICY.TYPE.PERSONAL &&
3025- shouldRestrictUserBillableActions(policy.id, ownerBillingGracePeriodEnd, userBillingGracePeriodEnds, amountOwed)
3025+ shouldRestrictUserBillableActions(policy.id, ownerBillingGracePeriodEnd, userBillingGracePeriodEnds, amountOwed, policy )
30263026 ) {
30273027 Navigation.navigate(ROUTES.RESTRICTED_ACTION.getRoute(policy.id));
30283028 return;
@@ -3039,7 +3039,7 @@ function getAddExpenseDropdownOptions({
30393039 if (!iouReportID) {
30403040 return;
30413041 }
3042- if (policy && shouldRestrictUserBillableActions(policy.id, ownerBillingGracePeriodEnd, userBillingGracePeriodEnds, amountOwed)) {
3042+ if (policy && shouldRestrictUserBillableActions(policy.id, ownerBillingGracePeriodEnd, userBillingGracePeriodEnds, amountOwed, policy )) {
30433043 Navigation.navigate(ROUTES.RESTRICTED_ACTION.getRoute(policy.id));
30443044 return;
30453045 }
@@ -3052,7 +3052,7 @@ function getAddExpenseDropdownOptions({
30523052 icon: icons.ReceiptPlus,
30533053 sentryLabel: CONST.SENTRY_LABEL.MORE_MENU.ADD_EXPENSE_UNREPORTED,
30543054 onSelected: () => {
3055- if (policy && shouldRestrictUserBillableActions(policy.id, ownerBillingGracePeriodEnd, userBillingGracePeriodEnds, amountOwed)) {
3055+ if (policy && shouldRestrictUserBillableActions(policy.id, ownerBillingGracePeriodEnd, userBillingGracePeriodEnds, amountOwed, policy )) {
30563056 Navigation.navigate(ROUTES.RESTRICTED_ACTION.getRoute(policy.id));
30573057 return;
30583058 }
@@ -11472,7 +11472,7 @@ function createDraftTransactionAndNavigateToParticipantSelector({
1147211472 }
1147311473
1147411474 if (actionName === CONST.IOU.ACTION.CATEGORIZE) {
11475- if (activePolicy && shouldRestrictUserBillableActions(activePolicy.id, ownerBillingGracePeriodEnd, userBillingGracePeriodEnds, amountOwed)) {
11475+ if (activePolicy && shouldRestrictUserBillableActions(activePolicy.id, ownerBillingGracePeriodEnd, userBillingGracePeriodEnds, amountOwed, activePolicy )) {
1147611476 Navigation.navigate(ROUTES.RESTRICTED_ACTION.getRoute(activePolicy.id));
1147711477 return;
1147811478 }
0 commit comments