Skip to content

Commit 1b5d332

Browse files
authored
docs: fix reset button in piece promotion advanced example (#213)
1 parent 17fb3dc commit 1b5d332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/stories/advanced-examples/PiecePromotion.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export const PiecePromotion: Story = {
133133
<button
134134
onClick={() => {
135135
chessGameRef.current = new Chess('8/P7/7K/8/8/8/8/k7 w - - 0 1');
136-
setChessPosition(chessGame.fen());
136+
setChessPosition(chessGameRef.current.fen());
137137
setPromotionMove(null);
138138
}}
139139
>

0 commit comments

Comments
 (0)