Skip to content

Commit

Permalink
Merge pull request #44181 from Expensify/cmartins-fixShouldShowMerchant
Browse files Browse the repository at this point in the history
Fix should show merchant
  • Loading branch information
jasperhuangg authored Jun 25, 2024
2 parents 13b22fc + e74b9fa commit cf450a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/SearchUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}

Expand Down

0 comments on commit cf450a3

Please sign in to comment.