Skip to content

Commit

Permalink
disable downloading EReceipt
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhutornyi committed Feb 7, 2024
1 parent f6ba751 commit 09ad6ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/AttachmentModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ function AttachmentModal({
},
});
}
if (!isOffline) {
if (!isOffline && allowDownload) {
menuItems.push({
icon: Expensicons.Download,
text: translate('common.download'),
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/ReportActionItemImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function ReportActionItemImage({thumbnail, image, enablePreviewModal = false, tr
report={report}
isReceiptAttachment
canEditReceipt={canEditReceipt}
allowDownload
allowDownload={!isEReceipt}
originalFileName={filename}
>
{({show}) => (
Expand Down

0 comments on commit 09ad6ec

Please sign in to comment.