From a388a3427020717a6fe356076690c0102b05971b Mon Sep 17 00:00:00 2001 From: Mashy Date: Thu, 24 Oct 2019 09:01:40 +1000 Subject: [PATCH] bailout for no stages --- 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 b09cb57c..66832af9 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) 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);