From 173bba02a13f6af4d222093cd8889eabe14320bc Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Wed, 9 Feb 2022 17:20:30 +0000 Subject: [PATCH] Fix bug where PMS charts wouldn't format well --- common/src/utils/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/utils/util.ts b/common/src/utils/util.ts index b4775652c..d3e52e644 100644 --- a/common/src/utils/util.ts +++ b/common/src/utils/util.ts @@ -6,7 +6,7 @@ export function FormatInt(v: number): string { } export function FormatDifficulty(chart: ChartDocument, game: Game): string { - if (game === "bms") { + if (game === "bms" || game === "pms") { const bmsChart = chart as ChartDocument<"bms:7K" | "bms:14K">; return ( bmsChart.data.tableFolders.map((e) => `${e.table}${e.level}`).join(", ") || "Unrated"