fix bug where guessing correct on guess 6/6 says you failed

This commit is contained in:
Akbar Rahman 2022-01-28 02:07:32 +00:00
parent 69edfb7f95
commit 46b06d44d9
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

View File

@ -68,7 +68,10 @@ function checkGridRow() {
console.log(gridItem.letter) console.log(gridItem.letter)
console.log(dedupword) console.log(dedupword)
if (correct_letters == gridWidth) endGame(true) if (correct_letters == gridWidth) {
endGame(true)
return
}
} }
getGridRow(row).complete = true getGridRow(row).complete = true