diff --git a/src/components/boards/BoardGame.tsx b/src/components/boards/BoardGame.tsx index 628a9548..e4c90f00 100644 --- a/src/components/boards/BoardGame.tsx +++ b/src/components/boards/BoardGame.tsx @@ -218,7 +218,7 @@ function BoardGame() { viewOnly={opponent === null} disableVariations boardRef={boardRef} - side={playingColor} + side={opponent === "human" ? undefined : playingColor} root={root} /> } diff --git a/src/components/boards/BoardPlay.tsx b/src/components/boards/BoardPlay.tsx index 90c2ca64..6ef6fc54 100644 --- a/src/components/boards/BoardPlay.tsx +++ b/src/components/boards/BoardPlay.tsx @@ -259,7 +259,7 @@ function BoardPlay({ const { pieces, diff } = getMaterialDiff(currentNode.fen); const practiceLock = - practicing && !deck.find((c) => c.fen === currentNode.fen); + !!practicing && !deck.find((c) => c.fen === currentNode.fen); return ( <>