From fb0ca8827e820ccfbf70b3a11b5b6f936bc50573 Mon Sep 17 00:00:00 2001 From: Dysto coder Date: Fri, 28 Jun 2024 13:36:12 +0300 Subject: [PATCH] Prevent assgining Scanning to merchant when shouldShowMerchant is false --- src/components/SelectionList/Search/TransactionListItemRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SelectionList/Search/TransactionListItemRow.tsx b/src/components/SelectionList/Search/TransactionListItemRow.tsx index 452af82fb78f..0adc7ee21fd1 100644 --- a/src/components/SelectionList/Search/TransactionListItemRow.tsx +++ b/src/components/SelectionList/Search/TransactionListItemRow.tsx @@ -111,7 +111,7 @@ function MerchantCell({transactionItem, showTooltip, isLargeScreenWidth}: Transa const description = TransactionUtils.getDescription(transactionItem); let merchant = transactionItem.shouldShowMerchant ? transactionItem.formattedMerchant : description; - if (TransactionUtils.hasReceipt(transactionItem) && TransactionUtils.isReceiptBeingScanned(transactionItem)) { + if (TransactionUtils.hasReceipt(transactionItem) && TransactionUtils.isReceiptBeingScanned(transactionItem) && transactionItem.shouldShowMerchant) { merchant = translate('iou.receiptStatusTitle'); }