checking if current langauge is the same as random quote language

fixes #3054
This commit is contained in:
Miodec 2022-06-01 13:41:00 +02:00
parent a17343636a
commit 3644f9996e

View file

@ -343,7 +343,11 @@ export function restart(
}
}
if (TestActive.get()) {
if (Config.repeatQuotes === "typing" && Config.mode === "quote") {
if (
Config.repeatQuotes === "typing" &&
Config.mode === "quote" &&
Config.language.replace(/_\d*k$/g, "") === TestWords.randomQuote.language
) {
withSameWordset = true;
}