diff --git a/src/libs/TransactionUtils.ts b/src/libs/TransactionUtils.ts index f6f540b339f6..67e31c610369 100644 --- a/src/libs/TransactionUtils.ts +++ b/src/libs/TransactionUtils.ts @@ -12,6 +12,7 @@ import {isEmptyObject} from '@src/types/utils/EmptyObject'; import {isCorporateCard, isExpensifyCard} from './CardUtils'; import DateUtils from './DateUtils'; import * as NumberUtils from './NumberUtils'; +import {getCleanedTagName} from './PolicyUtils'; import type {OptimisticIOUReportAction} from './ReportUtils'; let allTransactions: OnyxCollection = {}; @@ -409,7 +410,7 @@ function getTag(transaction: OnyxEntry, tagIndex?: number): string } function getTagForDisplay(transaction: OnyxEntry, tagIndex?: number): string { - return getTag(transaction, tagIndex).replace(/[\\\\]:/g, ':'); + return getCleanedTagName(getTag(transaction, tagIndex)); } /**