Skip to content

fix: resolve Chessground check prop type error#258

Merged
ashtonanderson merged 2 commits into
mainfrom
fix/gameboard-check-type
Mar 27, 2026
Merged

fix: resolve Chessground check prop type error#258
ashtonanderson merged 2 commits into
mainfrom
fix/gameboard-check-type

Conversation

@ashtonanderson
Copy link
Copy Markdown
Member

Summary

  • Fix Vercel build failure caused by GameNode.check (boolean) being passed to Chessground's check prop which expects boolean | 'white' | 'black' | undefined
  • Convert the boolean to the actual color string using currentNode.turn

Test plan

  • Verify Vercel build passes
  • Check that check highlighting still works correctly on the board

🤖 Generated with Claude Code

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>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
maia-platform-frontend Ready Ready Preview, Comment Mar 27, 2026 0:44am

Request Review

Add module augmentation for the <piece> intrinsic element used by
Chessground's CSS sprite system, fixing TS2339 build error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ashtonanderson ashtonanderson merged commit cd05f7b into main Mar 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant