mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-06 15:34:06 +08:00
fix(custom): crash when trying to start a custom text with a lot of sections containing a lot of words
This commit is contained in:
parent
a3916cb0cb
commit
a5c9433c3b
1 changed files with 1 additions and 1 deletions
|
|
@ -663,7 +663,7 @@ export async function generateWords(
|
|||
const sectionFinishedAndOverLimit =
|
||||
currentSection.length === 0 &&
|
||||
sectionIndex >= CustomText.getLimitValue();
|
||||
if (sectionFinishedAndOverLimit) {
|
||||
if (sectionFinishedAndOverLimit || ret.words.length >= 100) {
|
||||
stop = true;
|
||||
}
|
||||
} else if (ret.words.length >= limit) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue