From 874c2e05bb7a4429b54d34b53c92e9b8a05c6547 Mon Sep 17 00:00:00 2001 From: gijoe0295 Date: Sun, 1 Dec 2024 17:36:26 +0700 Subject: [PATCH] fix add receipt placeholder shows in iou confirmation page after adding a receipt --- src/libs/ReceiptUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReceiptUtils.ts b/src/libs/ReceiptUtils.ts index 7082bcd17963..5085f0e2384e 100644 --- a/src/libs/ReceiptUtils.ts +++ b/src/libs/ReceiptUtils.ts @@ -27,7 +27,7 @@ type ThumbnailAndImageURI = { * @param receiptFileName */ function getThumbnailAndImageURIs(transaction: OnyxEntry, receiptPath: ReceiptSource | null = null, receiptFileName: string | null = null): ThumbnailAndImageURI { - if (!TransactionUtils.hasReceipt(transaction)) { + if (!TransactionUtils.hasReceipt(transaction) && !receiptPath && !receiptFileName) { return {isEmptyReceipt: true}; } if (TransactionUtils.isFetchingWaypointsFromServer(transaction)) {