aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--frontend/src/ts/test/test-logic.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/frontend/src/ts/test/test-logic.ts b/frontend/src/ts/test/test-logic.ts
index 147ab8c4a..a2aa2882c 100644
--- a/frontend/src/ts/test/test-logic.ts
+++ b/frontend/src/ts/test/test-logic.ts
@@ -545,10 +545,13 @@ export async function addWord(): Promise<void> {
?.properties?.find((fp) => fp.startsWith("toPush:"));
const toPushCount = funboxToPush?.split(":")[1];
if (toPushCount !== undefined) bound = +toPushCount - 1;
- if (
- TestWords.words.length - TestInput.input.history.length > bound ||
- areAllTestWordsGenerated()
- ) {
+
+ if (TestWords.words.length - TestInput.input.history.length > bound) {
+ console.debug("Not adding word, enough words already");
+ return;
+ }
+ if (areAllTestWordsGenerated()) {
+ console.debug("Not adding word, all words generated");
return;
}