This commit is contained in:
Evan You 2022-01-23 23:23:49 +08:00
parent 93c2322834
commit 43e2d364d0

View File

@ -90,7 +90,7 @@ function completeRow() {
}) })
// second pass: mark the present // second pass: mark the present
currentRow.forEach((tile) => { currentRow.forEach((tile) => {
if (answerLetters.includes(tile.letter)) { if (!tile.state && answerLetters.includes(tile.letter)) {
tile.state = LetterState.PRESENT tile.state = LetterState.PRESENT
answerLetters[answerLetters.indexOf(tile.letter)] = null answerLetters[answerLetters.indexOf(tile.letter)] = null
if (!letterStates[tile.letter]) { if (!letterStates[tile.letter]) {