|
| 1 | +/* eslint-disable react-hooks/refs */ |
1 | 2 | import {useCallback, useEffect, useMemo, useRef, useState} from 'react'; |
2 | 3 | // eslint-disable-next-line no-restricted-imports |
3 | 4 | import {InteractionManager} from 'react-native'; |
@@ -1134,7 +1135,7 @@ function useSearchBulkActions({queryJSON}: UseSearchBulkActionsParams) { |
1134 | 1135 | value: CONST.SEARCH.BULK_ACTION_TYPES.DUPLICATE, |
1135 | 1136 | shouldCloseModalOnSelect: true, |
1136 | 1137 | onSelected: () => { |
1137 | | - if (defaultExpensePolicy && shouldRestrictUserBillableActions(defaultExpensePolicy.id, ownerBillingGracePeriodEnd, userBillingGracePeriodEnds, amountOwed)) { |
| 1138 | + if (defaultExpensePolicy && shouldRestrictUserBillableActions(defaultExpensePolicy, ownerBillingGracePeriodEnd, userBillingGracePeriodEnds, amountOwed)) { |
1138 | 1139 | Navigation.navigate(ROUTES.RESTRICTED_ACTION.getRoute(defaultExpensePolicy.id)); |
1139 | 1140 | return; |
1140 | 1141 | } |
@@ -1483,7 +1484,7 @@ function useSearchBulkActions({queryJSON}: UseSearchBulkActionsParams) { |
1483 | 1484 | value: CONST.SEARCH.BULK_ACTION_TYPES.DUPLICATE, |
1484 | 1485 | shouldCloseModalOnSelect: true, |
1485 | 1486 | onSelected: () => { |
1486 | | - if (defaultExpensePolicy && shouldRestrictUserBillableActions(defaultExpensePolicy.id, ownerBillingGracePeriodEnd, userBillingGracePeriodEnds, amountOwed)) { |
| 1487 | + if (defaultExpensePolicy && shouldRestrictUserBillableActions(defaultExpensePolicy, ownerBillingGracePeriodEnd, userBillingGracePeriodEnds, amountOwed)) { |
1487 | 1488 | Navigation.navigate(ROUTES.RESTRICTED_ACTION.getRoute(defaultExpensePolicy.id)); |
1488 | 1489 | return; |
1489 | 1490 | } |
|
0 commit comments