From: Laurent Mazet Date: Sun, 28 Jun 2020 14:21:26 +0000 (+0200) Subject: correct in row checking X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=0fa6efb69a6e7516d75fa7562b40e1c8ef32d0f0;p=trivabble.git correct in row checking --- diff --git a/public/trivabble.js b/public/trivabble.js index 2e4888d..94c8327 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1546,7 +1546,7 @@ /* Look for word in row */ const newWordInRow = searchWordInLine(row, col, 0, 1); - if ((newWordInRow !== null) && (!words.find(element => element.letters === newWordInCol.letters))) { + if ((newWordInRow !== null) && (!words.find(element => element.letters === newWordInRow.letters))) { words.push(newWordInRow); }