Skip to content

Commit 9bcb458

Browse files
fix: resolve Chessground check prop type error breaking Vercel build
Convert boolean GameNode.check to the 'white' | 'black' | false value that Chessground expects, fixing a TS2345 build failure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 393ff9a commit 9bcb458

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Board/GameBoard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const GameBoard: React.FC<Props> = ({
142142
fen,
143143
lastMove,
144144
check: currentNode.check
145-
? (currentNode.turn === 'w' ? 'white' : 'black')
145+
? ((currentNode.turn === 'w' ? 'white' : 'black') as 'white' | 'black')
146146
: false,
147147
orientation: orientation as 'white' | 'black',
148148
}

0 commit comments

Comments
 (0)