diff --git a/frontend/src/scripts/test/test-stats.ts b/frontend/src/scripts/test/test-stats.ts index 73fded71c..2c3938272 100644 --- a/frontend/src/scripts/test/test-stats.ts +++ b/frontend/src/scripts/test/test-stats.ts @@ -280,13 +280,9 @@ export function setLastSecondNotRound(): void { export function calculateBurst(): number { const timeToWrite = (performance.now() - TestInput.currentBurstStart) / 1000; let wordLength; - if (Config.mode === "zen") { - wordLength = TestInput.input.current.length; - if (wordLength == 0) { - wordLength = TestInput.input.getHistoryLast().length; - } - } else { - wordLength = TestWords.words.getCurrent().length; + wordLength = TestInput.input.current.length; + if (Config.mode === "zen" && wordLength == 0) { + wordLength = TestInput.input.getHistoryLast().length; } const speed = Misc.roundTo2((wordLength * (60 / timeToWrite)) / 5); return Math.round(speed);