fix: keep empty revealed cells uncolored

This commit is contained in:
thibaud-leclere 2026-04-11 12:53:24 +02:00
parent 253fdcf040
commit ecd716204d

View file

@ -57,6 +57,8 @@ export default function GameRow({ actorName, pos, colStart, totalWidth, hintType
const correctLetter = ch.toUpperCase(); const correctLetter = ch.toUpperCase();
const revealState = !revealed || isMainActorCell const revealState = !revealed || isMainActorCell
? null ? null
: attemptedLetter === ''
? null
: attemptedLetter === correctLetter : attemptedLetter === correctLetter
? 'correct' ? 'correct'
: 'wrong'; : 'wrong';