diff --git a/src/libs/SearchUIUtils.ts b/src/libs/SearchUIUtils.ts index 83261ab1e796..5702a4e1d9ab 100644 --- a/src/libs/SearchUIUtils.ts +++ b/src/libs/SearchUIUtils.ts @@ -333,7 +333,7 @@ function getAction(data: OnyxTypes.SearchResults['data'], key: string): SearchTr // We check for isAllowedToApproveExpenseReport because if the policy has preventSelfApprovals enabled, we disable the Submit action and in that case we want to show the View action instead const transactionIDList = allReportTransactions.map((reportTransaction) => reportTransaction.transactionID); - if (IOU.canSubmitReport(report, policy, transactionIDList) && isAllowedToApproveExpenseReport) { + if (IOU.canSubmitReport(report, policy, transactionIDList, allViolations) && isAllowedToApproveExpenseReport) { return CONST.SEARCH.ACTION_TYPES.SUBMIT; }