diff --git a/frontend/src/ts/pages/account.ts b/frontend/src/ts/pages/account.ts index de8c5954d..c33884891 100644 --- a/frontend/src/ts/pages/account.ts +++ b/frontend/src/ts/pages/account.ts @@ -645,13 +645,12 @@ async function fillContent(): Promise { }); if (result.wpm > topWpm) { - const puncsctring = result.punctuation ? ",
with punctuation" : ""; - const numbsctring = result.numbers - ? ",
" + (result.punctuation ? "&" : "") + "with numbers" - : ""; topWpm = result.wpm; - if (result.mode === "custom") topMode = result.mode; - else { + if (result.mode === "custom") { + topMode = result.mode; + } else { + const puncsctring = result.punctuation ? ",
with punctuation" : ""; + const numbsctring = result.numbers ? ",
with numbers" : ""; topMode = result.mode + " " + result.mode2 + puncsctring + numbsctring; } }