Skip to content

Commit

Permalink
Hide delete option for fail scan request
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Mar 8, 2024
1 parent 86a9904 commit 09503fa
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 09503fa

Please sign in to comment.