@@ -319,15 +319,15 @@ function MoneyRequestView({
319
319
320
320
const shouldShowMapOrReceipt = showMapAsImage || hasReceipt ;
321
321
const shouldShowReceiptEmptyState = ! hasReceipt && ! isInvoice && ( canEditReceipt || isAdmin || isApprover ) ;
322
- const receiptNoticeNames : OnyxTypes . ViolationName [ ] = [
322
+ const receiptViolationNames : OnyxTypes . ViolationName [ ] = [
323
323
CONST . VIOLATIONS . RECEIPT_REQUIRED ,
324
324
CONST . VIOLATIONS . RECEIPT_NOT_SMART_SCANNED ,
325
325
CONST . VIOLATIONS . MODIFIED_DATE ,
326
326
CONST . VIOLATIONS . CASH_EXPENSE_WITH_NO_RECEIPT ,
327
327
CONST . VIOLATIONS . SMARTSCAN_FAILED ,
328
328
] ;
329
- const receiptNoticeViolations =
330
- transactionViolations ?. filter ( ( violation ) => receiptNoticeNames . includes ( violation . name ) ) . map ( ( v ) => ViolationsUtils . getViolationTranslation ( v , translate ) ) ?? [ ] ;
329
+ const receiptViolations =
330
+ transactionViolations ?. filter ( ( violation ) => receiptViolationNames . includes ( violation . name ) ) . map ( ( violation ) => ViolationsUtils . getViolationTranslation ( violation , translate ) ) ?? [ ] ;
331
331
const shouldShowNotesViolations = ! isReceiptBeingScanned && canUseViolations && ReportUtils . isPaidGroupPolicy ( report ) ;
332
332
333
333
return (
@@ -336,7 +336,7 @@ function MoneyRequestView({
336
336
< View style = { shouldShowAnimatedBackground && [ StyleUtils . getReportWelcomeTopMarginStyle ( isSmallScreenWidth , true ) ] } >
337
337
{ ! isInvoice && (
338
338
< ReceiptAuditHeader
339
- notes = { receiptNoticeViolations }
339
+ notes = { receiptViolations }
340
340
shouldShowAuditMessage = { Boolean ( shouldShowNotesViolations && didRceiptScanSucceed ) }
341
341
/>
342
342
) }
@@ -391,7 +391,7 @@ function MoneyRequestView({
391
391
/>
392
392
) }
393
393
{ ! shouldShowReceiptEmptyState && ! shouldShowMapOrReceipt && < View style = { { marginVertical : 6 } } /> }
394
- { shouldShowNotesViolations && < ReceiptAuditMessages notes = { receiptNoticeViolations } /> }
394
+ { shouldShowNotesViolations && < ReceiptAuditMessages notes = { receiptViolations } /> }
395
395
< OfflineWithFeedback pendingAction = { getPendingFieldAction ( 'amount' ) } >
396
396
< MenuItemWithTopDescription
397
397
title = { amountTitle }
0 commit comments