From 0a2de080b752074e3608b0a8bccf4061afa6e0b6 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 28 May 2020 18:51:52 +0100 Subject: [PATCH] made sure the stats will be calculated when expert of master fails the test --- public/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/script.js b/public/js/script.js index 84953bf07..05efe86c1 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -431,7 +431,7 @@ function countChars() { } function calculateStats() { - if (config.mode == "words") { + if (config.mode == "words" && config.difficulty == "normal") { if (inputHistory.length != wordsList.length) return; } let chars = countChars();