mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-18 03:26:07 +08:00
fix(word generator): repeated tests sometimes triggering generation error
This commit is contained in:
parent
ea650278ea
commit
03937c72cd
1 changed files with 5 additions and 1 deletions
|
@ -738,7 +738,11 @@ export async function getNextWord(
|
|||
|
||||
if (
|
||||
Config.mode === "time" ||
|
||||
(Config.mode === "custom" && CustomText.getLimitMode() === "time")
|
||||
(Config.mode === "custom" && CustomText.getLimitMode() === "time") ||
|
||||
(Config.mode === "custom" &&
|
||||
CustomText.getLimitMode() === "word" &&
|
||||
wordIndex < CustomText.getLimitValue()) ||
|
||||
(Config.mode === "words" && wordIndex < Config.words)
|
||||
) {
|
||||
continueRandomGeneration = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue