Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Aug 2, 2024
1 parent f62f7f2 commit 773e7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/widgets/board.dart
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ class _BoardState extends State<Chessboard> {
// target square
if (square != null && square != selected) {
final couldMove = _tryMoveOrPremoveTo(square, drop: true);
// if the prevemove was not possible, cancel the current premove
// if the premove was not possible, cancel the current premove
if (!couldMove && widget.state.premove != null) {
widget.onPremove?.call(null);
}
Expand Down

0 comments on commit 773e7db

Please sign in to comment.