mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-30 02:39:05 +08:00
fix(word generation): test sometimes stopping in a repeated practice words test
This commit is contained in:
parent
b0e7e2eaa4
commit
0bc380f8e1
2 changed files with 7 additions and 1 deletions
|
|
@ -656,7 +656,10 @@ export async function addWord(): Promise<void> {
|
|||
e,
|
||||
"Error while getting next word. Please try again later"
|
||||
),
|
||||
-1
|
||||
-1,
|
||||
{
|
||||
important: true,
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -749,6 +749,9 @@ export async function getNextWord(
|
|||
(Config.mode === "custom" &&
|
||||
CustomText.getLimitMode() === "word" &&
|
||||
wordIndex < CustomText.getLimitValue()) ||
|
||||
(Config.mode === "custom" &&
|
||||
CustomText.getLimitMode() === "section" &&
|
||||
sectionIndex < CustomText.getLimitValue()) ||
|
||||
(Config.mode === "words" && wordIndex < Config.words)
|
||||
) {
|
||||
continueRandomGeneration = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue