Skip to content

Commit

Permalink
fix add receipt placeholder shows in iou confirmation page after addi…
Browse files Browse the repository at this point in the history
…ng a receipt
  • Loading branch information
gijoe0295 committed Dec 1, 2024
1 parent 3063b25 commit 874c2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReceiptUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type ThumbnailAndImageURI = {
* @param receiptFileName
*/
function getThumbnailAndImageURIs(transaction: OnyxEntry<Transaction>, 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)) {
Expand Down

0 comments on commit 874c2e0

Please sign in to comment.