From e74b9fa7b40d1ecdc019b105534a31de9cf97a03 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Fri, 21 Jun 2024 13:41:44 -0600 Subject: [PATCH] fix should show merchant --- src/libs/SearchUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/SearchUtils.ts b/src/libs/SearchUtils.ts index 01b9a61ab73f..d0005e9961e5 100644 --- a/src/libs/SearchUtils.ts +++ b/src/libs/SearchUtils.ts @@ -73,7 +73,7 @@ function getSearchType(search: OnyxTypes.SearchResults['search']): SearchDataTyp function getShouldShowMerchant(data: OnyxTypes.SearchResults['data']): boolean { return Object.values(data).some((item) => { const merchant = item.modifiedMerchant ? item.modifiedMerchant : item.merchant ?? ''; - return merchant !== CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT && merchant !== CONST.TRANSACTION.DEFAULT_MERCHANT; + return merchant !== '' && merchant !== CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT && merchant !== CONST.TRANSACTION.DEFAULT_MERCHANT; }); }