Fix fail check to not fail until 3rd word in test

This commit is contained in:
Otard95 2021-06-02 15:46:53 +02:00
parent 4cd30f0e10
commit b26701c1d3

View file

@ -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();