diff --git a/frontend/src/ts/elements/account-button.ts b/frontend/src/ts/elements/account-button.ts index 2e06c8cd8..e292d5538 100644 --- a/frontend/src/ts/elements/account-button.ts +++ b/frontend/src/ts/elements/account-button.ts @@ -196,14 +196,17 @@ async function animateXpBreakdown( await Misc.sleep(delay); await append(`quote +${breakdown["quote"]}`); total += breakdown["quote"]; - } else if (breakdown["punctuation"]) { - await Misc.sleep(delay); - await append(`punctuation +${breakdown["punctuation"]}`); - total += breakdown["punctuation"]; - } else if (breakdown["numbers"]) { - await Misc.sleep(delay); - await append(`numbers +${breakdown["numbers"]}`); - total += breakdown["numbers"]; + } else { + if (breakdown["punctuation"]) { + await Misc.sleep(delay); + await append(`punctuation +${breakdown["punctuation"]}`); + total += breakdown["punctuation"]; + } + if (breakdown["numbers"]) { + await Misc.sleep(delay); + await append(`numbers +${breakdown["numbers"]}`); + total += breakdown["numbers"]; + } } if (skipBreakdown) return;