fix lobby
This commit is contained in:
parent
d28748f217
commit
e0f0634c74
@ -120,7 +120,8 @@ 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
|
||||
const phase = i.phase === 'Lobby'
|
||||
? 'Lobby' : i.rounds[i.rounds.length - 1].game_id
|
||||
? 'In game'
|
||||
: 'Vbox';
|
||||
return <button key={i.id} onClick={() => joinInstance(i)} >{`${phase} ${score.wins} / ${score.losses}`}</button>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user