From 722997d4bf6795c0d8035100b8f56d2ac0803144 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 14 May 2021 15:11:05 +0100 Subject: [PATCH] fixed #1424 --- src/js/test/practise-missed.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/js/test/practise-missed.js b/src/js/test/practise-missed.js index 46f294691..a2e29155e 100644 --- a/src/js/test/practise-missed.js +++ b/src/js/test/practise-missed.js @@ -15,10 +15,14 @@ export function init() { Notifications.add("You haven't missed any words.", 0); return; } - let mode = before.mode === null ? Config.mode : before.mode; - let punctuation = - before.punctuation === null ? Config.punctuation : before.punctuation; - let numbers = before.numbers === null ? Config.numbers : before.numbers; + before = { + mode: null, + punctuation: null, + numbers: null, + }; + let mode = Config.mode; + let punctuation = Config.punctuation; + let numbers = Config.numbers; UpdateConfig.setMode("custom"); let newCustomText = []; Object.keys(TestStats.missedWords).forEach((missedWord) => {