Skip to content

Commit 7b7536e

Browse files
committed
update canSubmitReport
1 parent f8b1758 commit 7b7536e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/SearchUIUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ function getAction(data: OnyxTypes.SearchResults['data'], allViolations: OnyxCol
760760
}
761761

762762
// 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
763-
if (canSubmitReport(report, policy, allReportTransactions, allViolations, isIOUReportArchived) && isAllowedToApproveExpenseReport) {
763+
if (canSubmitReport(report, policy, allReportTransactions, allViolations, isIOUReportArchived || isChatReportArchived) && isAllowedToApproveExpenseReport) {
764764
return CONST.SEARCH.ACTION_TYPES.SUBMIT;
765765
}
766766

0 commit comments

Comments
 (0)