From 0fa6efb69a6e7516d75fa7562b40e1c8ef32d0f0 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Sun, 28 Jun 2020 16:21:26 +0200 Subject: [PATCH] correct in row checking --- public/trivabble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2