fixed a bug where the crown would always be shown

This commit is contained in:
Jack 2020-05-29 15:14:18 +01:00
parent 38f4064e05
commit 83fef1ec6c

View file

@ -531,7 +531,8 @@ function showResult(difficultyFailed = false) {
punctuation: config.punctuation,
timestamp: Date.now(),
language: config.language,
restartCount: restartCount
restartCount: restartCount,
difficulty: config.difficulty
};
restartCount = 0;
if (stats.wpm > 0 && stats.wpm < 350 && stats.acc > 50 && stats.acc <= 100) {