From 114da4f098b94a764d0c20bbcec6f3af5aadbe8d Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Mon, 21 Nov 2022 19:51:50 +0000 Subject: [PATCH] fix: incorrect space insertion on games with 1 playtype --- common/src/utils/util.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/src/utils/util.ts b/common/src/utils/util.ts index f3e013017..a2c4ad3fe 100644 --- a/common/src/utils/util.ts +++ b/common/src/utils/util.ts @@ -141,7 +141,11 @@ export function FormatChart( // iidx formats things like SPA instead of SP A. // this is a hack, this should be part of the gptConfig, tbh. - const space = !short || game !== "iidx" ? " " : ""; + let space = ""; + + if (game !== "iidx" && gameConfig.validPlaytypes.length > 1 && !short) { + space = " "; + } // return the most recent version this chart appeared in if it // is not primary.