From fbf2a42581aa467472826547b44962f65870a8f9 Mon Sep 17 00:00:00 2001 From: ntr Date: Fri, 5 Jul 2019 18:36:24 +1000 Subject: [PATCH] events state --- client/src/events.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/events.jsx b/client/src/events.jsx index 1d784dc0..dbbbc76a 100644 --- a/client/src/events.jsx +++ b/client/src/events.jsx @@ -84,7 +84,9 @@ function registerEvents(store) { // stop skipping resolutions store.dispatch(actions.setSkip(false)); // update the game - store.dispatch(actions.setGame(currentGame)); + store.dispatch(actions.setGame(game)); + // get the latest state and restart polling + ws.sendGameState(currentGame.id); return true; }); }