From 46b06d44d9933a3c2638ab1916dd1e8c624923b6 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Fri, 28 Jan 2022 02:07:32 +0000 Subject: [PATCH] fix bug where guessing correct on guess 6/6 says you failed --- game.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/game.js b/game.js index a244cbb..6d7b408 100644 --- a/game.js +++ b/game.js @@ -68,7 +68,10 @@ function checkGridRow() { console.log(gridItem.letter) console.log(dedupword) - if (correct_letters == gridWidth) endGame(true) + if (correct_letters == gridWidth) { + endGame(true) + return + } } getGridRow(row).complete = true