Skip to content

Commit 294847d

Browse files
committed
chore: add debug log to addWord function
!nuf
1 parent 1141051 commit 294847d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

frontend/src/ts/test/test-logic.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,13 @@ export async function addWord(): Promise<void> {
545545
?.properties?.find((fp) => fp.startsWith("toPush:"));
546546
const toPushCount = funboxToPush?.split(":")[1];
547547
if (toPushCount !== undefined) bound = +toPushCount - 1;
548-
if (
549-
TestWords.words.length - TestInput.input.history.length > bound ||
550-
areAllTestWordsGenerated()
551-
) {
548+
549+
if (TestWords.words.length - TestInput.input.history.length > bound) {
550+
console.debug("Not adding word, enough words already");
551+
return;
552+
}
553+
if (areAllTestWordsGenerated()) {
554+
console.debug("Not adding word, all words generated");
552555
return;
553556
}
554557

0 commit comments

Comments
 (0)