chore: add debug log to addWord function

!nuf
This commit is contained in:
Miodec 2024-11-25 17:46:50 +01:00
parent 1141051716
commit 294847d389

View file

@ -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;
}