We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d2d47d8 + cd05f7b commit f9e658bCopy full SHA for f9e658b
1 file changed
src/components/Board/GameBoard.tsx
@@ -142,9 +142,7 @@ export const GameBoard: React.FC<Props> = ({
142
fen,
143
lastMove,
144
check: currentNode.check
145
- ? currentNode.turn === 'w'
146
- ? 'white'
147
- : 'black'
+ ? ((currentNode.turn === 'w' ? 'white' : 'black') as 'white' | 'black')
148
: false,
149
orientation: orientation as 'white' | 'black',
150
}
0 commit comments