fix(word generator): custom mode with time limit generating the wrong amount of starting words

closes #5627
This commit is contained in:
Miodec 2024-07-24 12:01:57 +02:00
parent c856cf12f8
commit ee49c79d6f

View file

@ -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 =