From 2192d47fefd41f408bb9d0d513b48f7e751f7c29 Mon Sep 17 00:00:00 2001 From: Cristi Paval Date: Wed, 18 Oct 2023 20:46:19 +0300 Subject: [PATCH] Merge pull request #29873 from c3024/29855-receipt-missing-in-preview get image from IOU when there is no source in transaction (cherry picked from commit 4a1e2b3e8a1f73992173264276fef2ded1fd5918) --- src/components/MoneyRequestConfirmationList.js | 3 ++- src/libs/ReceiptUtils.ts | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/MoneyRequestConfirmationList.js b/src/components/MoneyRequestConfirmationList.js index fefacc385116..93851525934b 100755 --- a/src/components/MoneyRequestConfirmationList.js +++ b/src/components/MoneyRequestConfirmationList.js @@ -536,7 +536,8 @@ function MoneyRequestConfirmationList(props) { ); }, [confirm, props.bankAccountRoute, props.iouCurrencyCode, props.iouType, props.isReadOnly, props.policyID, selectedParticipants, splitOrRequestOptions, translate, formError]); - const {image: receiptImage, thumbnail: receiptThumbnail} = props.receiptPath && props.receiptFilename ? ReceiptUtils.getThumbnailAndImageURIs(transaction) : {}; + const {image: receiptImage, thumbnail: receiptThumbnail} = + props.receiptPath && props.receiptFilename ? ReceiptUtils.getThumbnailAndImageURIs(transaction, props.receiptPath, props.receiptFilename) : {}; return (