From ee49c79d6f0fbaa537d1d74f9e12e44271da2899 Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 24 Jul 2024 12:01:57 +0200 Subject: [PATCH] fix(word generator): custom mode with time limit generating the wrong amount of starting words closes #5627 --- frontend/src/ts/test/words-generator.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/test/words-generator.ts b/frontend/src/ts/test/words-generator.ts index 4c2d17092..d8bcb2685 100644 --- a/frontend/src/ts/test/words-generator.ts +++ b/frontend/src/ts/test/words-generator.ts @@ -433,7 +433,10 @@ export function getWordsLimit(): number { //custom if (Config.mode === "custom") { - if (CustomText.getLimitValue() === 0) { + if ( + CustomText.getLimitValue() === 0 || + CustomText.getLimitMode() === "time" + ) { limit = 100; } else { limit =