From 6948fce6e06e23b2b35571c632b6badaa641d57a Mon Sep 17 00:00:00 2001 From: Mashy Date: Fri, 25 Oct 2019 13:10:03 +1000 Subject: [PATCH] early return fix --- client/src/events.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/events.jsx b/client/src/events.jsx index 66832af9..6f42c894 100644 --- a/client/src/events.jsx +++ b/client/src/events.jsx @@ -66,7 +66,7 @@ function registerEvents(store) { // stop fetching the game state til animations are done const newRes = game.resolved.slice(currentGame.resolved.length); return eachSeries(newRes, (r, cb) => { - if (!r.event || r.stages === '') return cb; + if (!r.event || r.stages === '') return cb(); const timeout = animations.getTime(r.stages); const anims = animations.getObjects(r, game, account); const text = animations.getText(r);