events state

This commit is contained in:
ntr 2019-07-05 18:36:24 +10:00
parent d1001637fa
commit fbf2a42581

View File

@ -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;
});
}