diff --git a/assets/react/controllers/GameRow.jsx b/assets/react/controllers/GameRow.jsx index 45d1986..bd3828a 100644 --- a/assets/react/controllers/GameRow.jsx +++ b/assets/react/controllers/GameRow.jsx @@ -50,24 +50,23 @@ export default function GameRow({ actorName, pos, colStart, totalWidth, hintType ); } + const isMainActorCell = charIndex === pos; const attemptedLetter = typeof attemptedLetters?.[charIndex] === 'string' ? attemptedLetters[charIndex].toUpperCase() : ''; const correctLetter = ch.toUpperCase(); - const revealState = !revealed + const revealState = !revealed || isMainActorCell ? null - : attemptedLetter === '' - ? null - : attemptedLetter === correctLetter - ? 'correct' - : 'wrong'; + : attemptedLetter === correctLetter + ? 'correct' + : 'wrong'; return ( focusNextInput(charIndex, 1)} onPrev={() => focusNextInput(charIndex, -1)}