From 3644f9996e1a8f97cbd1eff79f71b4b9aeaa6755 Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 1 Jun 2022 13:41:00 +0200 Subject: [PATCH] checking if current langauge is the same as random quote language fixes #3054 --- frontend/src/ts/test/test-logic.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/test/test-logic.ts b/frontend/src/ts/test/test-logic.ts index 96fe7d1bb..a61f14886 100644 --- a/frontend/src/ts/test/test-logic.ts +++ b/frontend/src/ts/test/test-logic.ts @@ -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; }