From 253fdcf040c9a554006d17612fc3343b0c2dddb6 Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Sat, 11 Apr 2026 12:52:13 +0200 Subject: [PATCH] fix: keep main actor column highlighted on abandon --- assets/react/controllers/GameRow.jsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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)}