From e0f0634c74053f754131f5351943902cee8f1d9c Mon Sep 17 00:00:00 2001 From: ntr Date: Tue, 11 Jun 2019 22:32:01 +1000 Subject: [PATCH] fix lobby --- client/src/components/nav.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/components/nav.jsx b/client/src/components/nav.jsx index ab4cc24e..931fa328 100644 --- a/client/src/components/nav.jsx +++ b/client/src/components/nav.jsx @@ -120,9 +120,10 @@ function Nav(args) { const joined = instances.map(i => { const score = i.players.find(p => p.id === account.id); - const phase = i.rounds[i.rounds.length - 1].game_id - ? 'In game' - : 'Vbox'; + const phase = i.phase === 'Lobby' + ? 'Lobby' : i.rounds[i.rounds.length - 1].game_id + ? 'In game' + : 'Vbox'; return });