We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3108864 commit cf3ee97Copy full SHA for cf3ee97
1 file changed
react-ystemandchess/src/features/lessons/piece-lessons/lesson-overlay/Lesson-overlay.tsx
@@ -384,6 +384,7 @@ const LessonOverlay: React.FC<LessonOverlayProps> = ({
384
// Determine player color from FEN
385
const turn = getTurnFromFEN(lessonData.startFen);
386
setBoardOrientation(turn);
387
+ playerColorRef.current = turn;
388
389
// Initialize game position
390
gameRef.current = new Chess(lessonData.startFen);
0 commit comments