diff --git a/src/js/test/practise-missed.js b/src/js/test/practise-missed.js index 46f294691..80fc9790c 100644 --- a/src/js/test/practise-missed.js +++ b/src/js/test/practise-missed.js @@ -30,7 +30,7 @@ export function init() { CustomText.setIsWordRandom(true); CustomText.setWord(Object.keys(TestStats.missedWords).length * 5); - TestLogic.restart(); + TestLogic.restart(false, false, false, true); before.mode = mode; before.punctuation = punctuation; before.numbers = numbers; diff --git a/src/js/test/test-logic.js b/src/js/test/test-logic.js index 491836450..cc24e0713 100644 --- a/src/js/test/test-logic.js +++ b/src/js/test/test-logic.js @@ -608,7 +608,12 @@ export async function init() { } } -export function restart(withSameWordset = false, nosave = false, event) { +export function restart( + withSameWordset = false, + nosave = false, + event, + practiseMissed = false +) { if (TestUI.testRestarting || TestUI.resultCalculating) { try { event.preventDefault(); @@ -670,7 +675,11 @@ export function restart(withSameWordset = false, nosave = false, event) { $("#words").empty(); } - if (PractiseMissed.before.mode !== null && !withSameWordset) { + if ( + PractiseMissed.before.mode !== null && + !withSameWordset && + !practiseMissed + ) { Notifications.add("Reverting to previous settings.", 0); UpdateConfig.setMode(PractiseMissed.before.mode); UpdateConfig.setPunctuation(PractiseMissed.before.punctuation);