Skip to content

Commit 0a2de08

Browse files
committed
made sure the stats will be calculated when expert of master fails the test
1 parent 8b0a9be commit 0a2de08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ function countChars() {
431431
}
432432

433433
function calculateStats() {
434-
if (config.mode == "words") {
434+
if (config.mode == "words" && config.difficulty == "normal") {
435435
if (inputHistory.length != wordsList.length) return;
436436
}
437437
let chars = countChars();

0 commit comments

Comments
 (0)