fix: keep empty revealed cells uncolored
This commit is contained in:
parent
253fdcf040
commit
ecd716204d
1 changed files with 2 additions and 0 deletions
|
|
@ -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';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue