From d098d3a2d8a931ca8b32269b8fb18620e4a83991 Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 2 Mar 2022 13:39:48 +0100 Subject: [PATCH] if input is empty calculating burst from last input closes #2611 --- frontend/src/scripts/test/test-stats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/scripts/test/test-stats.ts b/frontend/src/scripts/test/test-stats.ts index 2c3938272..c31cbae34 100644 --- a/frontend/src/scripts/test/test-stats.ts +++ b/frontend/src/scripts/test/test-stats.ts @@ -281,7 +281,7 @@ export function calculateBurst(): number { const timeToWrite = (performance.now() - TestInput.currentBurstStart) / 1000; let wordLength; wordLength = TestInput.input.current.length; - if (Config.mode === "zen" && wordLength == 0) { + if (wordLength == 0) { wordLength = TestInput.input.getHistoryLast().length; } const speed = Misc.roundTo2((wordLength * (60 / timeToWrite)) / 5);