Skip to content

Commit 55336ba

Browse files
committed
readd removed props usage
1 parent dffca13 commit 55336ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/AttachmentModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ function AttachmentModal({
487487
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
488488
}, [isReceiptAttachment, transaction, file, sourceState, iouType]);
489489

490-
const headerTitleNew = translate(isReceiptAttachment ? 'common.receipt' : 'common.attachment');
490+
const headerTitleNew = headerTitle ?? translate(isReceiptAttachment ? 'common.receipt' : 'common.attachment');
491491
const shouldShowThreeDotsButton = isReceiptAttachment && isModalOpen && threeDotsMenuItems.length !== 0;
492492
let shouldShowDownloadButton = false;
493493
if (!isEmptyObject(report) || type === CONST.ATTACHMENT_TYPE.SEARCH) {

0 commit comments

Comments
 (0)