mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
fix(word generator): quotes breaking when repeat quotes is enabled
This commit is contained in:
parent
4514ad02ae
commit
1d79d87d89
1 changed files with 5 additions and 1 deletions
|
@ -583,7 +583,11 @@ async function generateQuoteWords(
|
|||
sectionIndexes: [],
|
||||
};
|
||||
if (TestState.isRepeated) {
|
||||
for (let i = 0; i < limit; i++) {
|
||||
for (
|
||||
let i = 0;
|
||||
i < Math.min(limit, previousGetNextWordReturns.length);
|
||||
i++
|
||||
) {
|
||||
const repeated = previousGetNextWordReturns[i];
|
||||
|
||||
if (repeated === undefined) {
|
||||
|
|
Loading…
Reference in a new issue