diff --git a/client/src/Board.js b/client/src/Board.js index 1b261cc..4e1deb2 100644 --- a/client/src/Board.js +++ b/client/src/Board.js @@ -351,7 +351,7 @@ const Board = ({ table, game }) => { } } - if (game && game.turn.roll) { + if (game && game.turn && game.turn.roll) { let nodes = document.querySelectorAll('.Pip.Active'); for (let i = 0; i < nodes.length; i++) { nodes[i].classList.remove('Active');