diff --git a/client/src/events.jsx b/client/src/events.jsx index 57491079..5230b256 100644 --- a/client/src/events.jsx +++ b/client/src/events.jsx @@ -86,7 +86,7 @@ function registerEvents(store) { store.dispatch(actions.setAnimating(true)); store.dispatch(actions.setGameSkillInfo(null)); // stop fetching the game state til animations are done - const newRes = game.events[currentGame.events.length]; + const newRes = game.events[game.events.length - 1]; return eachSeries(newRes, (r, cb) => { const timeout = r.delay; setAnimations(r, store, account);