Fix bug where PMS charts wouldn't format well

This commit is contained in:
zkldi
2022-02-09 17:20:30 +00:00
parent bfe4e1fa3f
commit 173bba02a1
+1 -1
View File
@@ -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"