From 38e0a09a8a228cbd6dee59c0a0a67aaeec312f0e Mon Sep 17 00:00:00 2001 From: Mashy Date: Mon, 30 Sep 2019 17:08:01 +1000 Subject: [PATCH] catch null instance --- client/src/components/instance.footer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/instance.footer.jsx b/client/src/components/instance.footer.jsx index 82e01681..90c3bc37 100644 --- a/client/src/components/instance.footer.jsx +++ b/client/src/components/instance.footer.jsx @@ -32,7 +32,7 @@ function Instance(args) { sendInstanceReady, } = args; - + if (!instance) return false; const rdyClasses = `ready-btn ready`; const readyInfo = instance.phase === 'Lobby' ? 'lobbyReady'