diff --git a/src/libs/SearchUIUtils.ts b/src/libs/SearchUIUtils.ts index 8f0d14c38f9fe..0ebf24187fe55 100644 --- a/src/libs/SearchUIUtils.ts +++ b/src/libs/SearchUIUtils.ts @@ -94,7 +94,7 @@ import {getDisplayNameOrDefault} from './PersonalDetailsUtils'; import { arePaymentsEnabled, canSendInvoice, - getCleanedTagName, + getCommaSeparatedTagNameWithSanitizedColons, getGroupPaidPoliciesWithExpenseChatEnabled, getPolicy, getSubmitToAccountID, @@ -2408,7 +2408,7 @@ function getTagSections(data: OnyxTypes.SearchResults['data'], queryJSON: Search // Format the tag name - use translated "No tag" for empty values so it sorts alphabetically const rawTag = tagGroup.tag; const isEmptyTag = !rawTag || rawTag === CONST.SEARCH.TAG_EMPTY_VALUE || rawTag === '(untagged)'; - const formattedTag = isEmptyTag ? translate('search.noTag') : getCleanedTagName(rawTag); + const formattedTag = isEmptyTag ? translate('search.noTag') : getCommaSeparatedTagNameWithSanitizedColons(rawTag); tagSections[key] = { groupedBy: CONST.SEARCH.GROUP_BY.TAG,