Skip to content

Commit

Permalink
use unique index for generic images
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Aug 25, 2023
1 parent 62a59c6 commit 0f19ce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/ReportActionItemImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function ReportActionItemImages({images, size, total, isHovered}) {
const isLastImage = index === numberOfShownImages - 1;
return (
<View
key={image}
key={`${index}-${image}`}
style={[styles.reportActionItemImage, hoverStyle]}
>
<ReportActionItemImage
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/ReportPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function ReportPreview(props) {
const numberOfScanningReceipts = _.filter(transactionsWithReceipts, (transaction) => 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
Expand Down

0 comments on commit 0f19ce6

Please sign in to comment.