From 2daf9dcf8c01abc3413dc6e1d5aec31ae8f73064 Mon Sep 17 00:00:00 2001 From: Shahe Shahinyan Date: Wed, 6 Mar 2024 16:23:21 +0400 Subject: [PATCH] Addressed to reviewer comments --- .../MoneyRequestPreview/MoneyRequestPreviewContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx b/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx index aa2da2b66af7..223f2e77bd9d 100644 --- a/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx +++ b/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx @@ -157,7 +157,7 @@ function MoneyRequestPreviewContent({ const violationMessage = ViolationsUtils.getViolationTranslation(violations[0], translate); const violationsCount = violations.filter((v) => v.type === 'violation').length; const isTooLong = violationsCount > 1 || violationMessage.length > 15; - const hasViolationAndFieldErrors = violationsCount === 1 && hasFieldErrors; + const hasViolationsAndFieldErrors = violationsCount > 0 && hasFieldErrors; return `${message} • ${isTooLong || hasViolationAndFieldErrors ? translate('violations.reviewRequired') : violationMessage}`; }