diff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsx index 72cc9723a..8038812db 100644 --- a/web/src/components/player/LivePlayer.tsx +++ b/web/src/components/player/LivePlayer.tsx @@ -276,9 +276,7 @@ export default function LivePlayer({ ]), ] .filter((label) => label?.includes("-verified") == false) - .map((label) => - capitalizeFirstLetter(label.replaceAll("_", " ")), - ) + .map((label) => capitalizeFirstLetter(label)) .sort() .join(", ") .replaceAll("-verified", "")} diff --git a/web/src/utils/stringUtil.ts b/web/src/utils/stringUtil.ts index 0fbd7cde7..57f142119 100644 --- a/web/src/utils/stringUtil.ts +++ b/web/src/utils/stringUtil.ts @@ -4,6 +4,7 @@ export const capitalizeFirstLetter = (text: string): string => { export const capitalizeAll = (text: string): string => { return text + .replaceAll("_", " ") .split(" ") .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) .join(" ");