diff --git a/src/components/AttachmentModal.js b/src/components/AttachmentModal.js index 51912c04eb31..d24d1e18907f 100755 --- a/src/components/AttachmentModal.js +++ b/src/components/AttachmentModal.js @@ -366,7 +366,7 @@ function AttachmentModal(props) { setIsAuthTokenRequired(props.isAuthTokenRequired); }, [props.isAuthTokenRequired]); - const sourceForAttachmentView = props.source || source; + const sourceForAttachmentView = source || props.source; const threeDotsMenuItems = useMemo(() => { if (!props.isReceiptAttachment || !props.parentReport || !props.parentReportActions) { diff --git a/src/components/ReportActionItem/ReportActionItemImage.js b/src/components/ReportActionItem/ReportActionItemImage.js index 2c5ef22b1b8e..4336a5eddd8a 100644 --- a/src/components/ReportActionItem/ReportActionItemImage.js +++ b/src/components/ReportActionItem/ReportActionItemImage.js @@ -1,3 +1,4 @@ +import Str from 'expensify-common/lib/str'; import PropTypes from 'prop-types'; import React from 'react'; import {View} from 'react-native'; @@ -60,7 +61,7 @@ function ReportActionItemImage({thumbnail, image, enablePreviewModal, transactio ); - } else if (thumbnail && !isLocalFile) { + } else if (thumbnail && !isLocalFile && !Str.isPDF(imageSource)) { receiptImageComponent = (