From 8e9b257555aa5186b55986dc565c0aca9754f4e6 Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 8 Jun 2021 16:20:49 +0100 Subject: [PATCH] fixed words not marked as 'missed' when pressing space too early --- src/js/input-controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/input-controller.js b/src/js/input-controller.js index 0f833d2d1..dc58111dc 100644 --- a/src/js/input-controller.js +++ b/src/js/input-controller.js @@ -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;