diff --git a/assets/js/components/chess-board.js b/assets/js/components/chess-board.js index df78842..66467eb 100644 --- a/assets/js/components/chess-board.js +++ b/assets/js/components/chess-board.js @@ -25,7 +25,7 @@ class ChessBoard extends React.Component { this.channel.on("game_update", data => { store.dispatch(setGame(data)); - }) + }); } getBoard() { diff --git a/assets/js/store/actions.js b/assets/js/store/actions.js index 508bea5..aa9bf26 100644 --- a/assets/js/store/actions.js +++ b/assets/js/store/actions.js @@ -7,27 +7,27 @@ export const setPlayer = (player) => { return { type: SET_PLAYER, player: player - } -} + }; +}; export const setGame = (data) => { return { type: SET_GAME, board: data.board, turn: data.turn - } -} + }; +}; export const setGameId = (gameId) => { return { type: SET_GAME_ID, gameId: gameId - } -} + }; +}; export const selectPiece = (coords) => { return { type: SELECT_PIECE, coords: coords }; -} +};