From b26701c1d321c6ce2b4efd3e1d7cd4766a9c15a8 Mon Sep 17 00:00:00 2001 From: Otard95 Date: Wed, 2 Jun 2021 15:46:53 +0200 Subject: [PATCH] Fix fail check to not fail until 3rd word in test --- src/js/test/test-timer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/test/test-timer.js b/src/js/test/test-timer.js index 991fbebab..a1091a3b2 100644 --- a/src/js/test/test-timer.js +++ b/src/js/test/test-timer.js @@ -91,7 +91,9 @@ export function start() { (Config.minWpm === "custom" && wpmAndRaw.wpm < parseInt(Config.minWpmCustomSpeed) && TestLogic.words.currentIndex > 3) || - (Config.minAcc === "custom" && acc < parseInt(Config.minAccCustom)) + (Config.minAcc === "custom" && + acc < parseInt(Config.minAccCustom) && + TestLogic.words.currentIndex > 3) ) { clearTimeout(timer); TestLogic.fail();