Skip to content

Commit

Permalink
Merge pull request #37954 from dukenv0307/fix/34427
Browse files Browse the repository at this point in the history
Hide delete option for fail scan request
  • Loading branch information
srikarparsi authored Mar 11, 2024
2 parents af6de54 + 09503fa commit e0c7776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AttachmentModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ function AttachmentModal({
onSelected: () => downloadAttachment(),
});
}
if (TransactionUtils.hasReceipt(transaction) && !TransactionUtils.isReceiptBeingScanned(transaction) && canEditReceipt) {
if (TransactionUtils.hasReceipt(transaction) && !TransactionUtils.isReceiptBeingScanned(transaction) && canEditReceipt && !TransactionUtils.hasMissingSmartscanFields(transaction)) {
menuItems.push({
icon: Expensicons.Trashcan,
text: translate('receipt.deleteReceipt'),
Expand Down

0 comments on commit e0c7776

Please sign in to comment.