Skip to content

Commit 642dc06

Browse files
fix: cast Chessground check prop to fix build type error
GameNode.check is boolean but Chessground expects boolean | 'white' | 'black' | undefined, causing a build failure on Vercel with stricter type checking. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8b2057e commit 642dc06

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
@@ -170,7 +170,7 @@ export const GameBoard: React.FC<Props> = ({
170170
},
171171
fen: boardConfig.fen,
172172
lastMove: boardConfig.lastMove as Key[],
173-
check: boardConfig.check,
173+
check: boardConfig.check as boolean | 'white' | 'black' | undefined,
174174
orientation: boardConfig.orientation,
175175
}}
176176
/>

0 commit comments

Comments
 (0)