fixed words not marked as 'missed' when pressing space too early

This commit is contained in:
Miodec 2021-06-08 16:20:49 +01:00
parent 99722561c8
commit 8e9b257555

View file

@ -263,6 +263,7 @@ function handleSpace(event, isEnter) {
Sound.playError(Config.playSoundOnError);
}
}
TestStats.pushMissedWord(TestLogic.words.getCurrent());
TestStats.incrementAccuracy(false);
TestStats.incrementKeypressErrors();
let cil = TestLogic.input.current.length;