diff --git a/src/hooks/useChessActions.ts b/src/hooks/useChessActions.ts index fc21ae6..763a517 100644 --- a/src/hooks/useChessActions.ts +++ b/src/hooks/useChessActions.ts @@ -37,11 +37,7 @@ export const useChessActions = (chessAtom: PrimitiveAtom) => { const copyGame = useCallback(() => { const newGame = new Chess(); - if (game.history().length > 0) { - newGame.loadPgn(game.pgn()); - } else { - newGame.load(game.fen()); - } + newGame.loadPgn(game.pgn()); return newGame; }, [game]);