Skip to content

Commit

Permalink
fix should show merchant
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jun 21, 2024
1 parent e0d9b9d commit e74b9fa
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 e74b9fa

Please sign in to comment.