From 100f16c1548001d18824c01df799907f19f22392 Mon Sep 17 00:00:00 2001 From: AQIB-NAWAB Date: Mon, 30 Jun 2025 22:48:26 +0500 Subject: [PATCH 1/2] fix: resolve the scanning issue over the reports page --- src/components/TransactionItemRow/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/TransactionItemRow/index.tsx b/src/components/TransactionItemRow/index.tsx index 7bed78327133..c912c6dbe0a5 100644 --- a/src/components/TransactionItemRow/index.tsx +++ b/src/components/TransactionItemRow/index.tsx @@ -25,10 +25,9 @@ import { getCreated as getTransactionCreated, getTransactionPendingAction, hasMissingSmartscanFields, - hasReceipt, isAmountMissing, isMerchantMissing, - isReceiptBeingScanned, + isScanning, isTransactionPendingDelete, } from '@libs/TransactionUtils'; import variables from '@styles/variables'; @@ -114,9 +113,10 @@ function getMerchantNameWithFallback(transactionItem: TransactionWithOptionalSea } let merchant = shouldShowMerchant ? merchantOrDescriptionToDisplay : Parser.htmlToText(description); - if (hasReceipt(transactionItem) && isReceiptBeingScanned(transactionItem) && shouldShowMerchant) { + if (isScanning(transactionItem) && shouldShowMerchant) { merchant = translate('iou.receiptStatusTitle'); } + const merchantName = StringUtils.getFirstLine(merchant); return merchant !== CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT ? merchantName : ''; } From 2065caf47ae5e6c2b32a22b469919220fed5ab63 Mon Sep 17 00:00:00 2001 From: AQIB-NAWAB Date: Tue, 1 Jul 2025 07:55:21 +0500 Subject: [PATCH 2/2] signed commit --- src/components/TransactionItemRow/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/TransactionItemRow/index.tsx b/src/components/TransactionItemRow/index.tsx index c912c6dbe0a5..7907573258b5 100644 --- a/src/components/TransactionItemRow/index.tsx +++ b/src/components/TransactionItemRow/index.tsx @@ -111,6 +111,7 @@ function getMerchantNameWithFallback(transactionItem: TransactionWithOptionalSea if (merchantNameEmpty && shouldUseNarrowLayout) { merchantOrDescriptionToDisplay = Parser.htmlToText(description); } + let merchant = shouldShowMerchant ? merchantOrDescriptionToDisplay : Parser.htmlToText(description); if (isScanning(transactionItem) && shouldShowMerchant) {