From 0f19ce6f0460defdbe25bcafb291487be5491ad6 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Fri, 25 Aug 2023 13:16:24 -0600 Subject: [PATCH] use unique index for generic images --- src/components/ReportActionItem/ReportActionItemImages.js | 2 +- src/components/ReportActionItem/ReportPreview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ReportActionItem/ReportActionItemImages.js b/src/components/ReportActionItem/ReportActionItemImages.js index 138412fed37b..e9fed1ec289c 100644 --- a/src/components/ReportActionItem/ReportActionItemImages.js +++ b/src/components/ReportActionItem/ReportActionItemImages.js @@ -56,7 +56,7 @@ function ReportActionItemImages({images, size, total, isHovered}) { const isLastImage = index === numberOfShownImages - 1; return ( TransactionUtils.isReceiptBeingScanned(transaction)).length; const hasReceipts = transactionsWithReceipts.length > 0; const isScanning = hasReceipts && ReportUtils.areAllRequestsBeingSmartScanned(props.iouReportID, props.action); - const lastThreeTransactionsWithReceipts = ReportUtils.getReportPreviewDisplayTransactions(props.action).slice(0, 2); + const lastThreeTransactionsWithReceipts = ReportUtils.getReportPreviewDisplayTransactions(props.action); const hasOnlyOneReceiptRequest = numberOfRequests === 1 && hasReceipts; const previewSubtitle = hasOnlyOneReceiptRequest