Skip to content

Commit fec3043

Browse files
authored
fixed placement of a figure on a non-game square tile (#252)
Co-authored-by: Justas Bartka <>
1 parent 5cc0687 commit fec3043

File tree

1 file changed

+1
-1
lines changed
  • services/app/src/components/chessBoard

1 file changed

+1
-1
lines changed

services/app/src/components/chessBoard/Tile.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Tile = ({
1616

1717
/* eslint-disable-next-line */
1818
const _onClick = useCallback(() => {
19-
if (!attribute) {
19+
if (!attribute && (row !== 6 && column !== 0)) {
2020
onClick(row, column);
2121
}
2222
}, [onClick, row, column]);

0 commit comments

Comments
 (0)