Fix player/spectator counters
This commit is contained in:
parent
6d9d03dc44
commit
9700951a3e
2 changed files with 4 additions and 3 deletions
|
@ -87,8 +87,10 @@ export default class RoomList extends Vue {
|
|||
game_id: room.game_id,
|
||||
name: room.name,
|
||||
creator: room.creator,
|
||||
players: room.current_players,
|
||||
spectators: room.current_spectators,
|
||||
players: room.current_players ? room.current_players : 0,
|
||||
spectators: room.current_spectators
|
||||
? room.current_spectators
|
||||
: 0,
|
||||
can_spectate: room.can_spectate ? "Yes" : "No"
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<template>
|
||||
<div class="container">
|
||||
<b-table striped hoverable :data="rows" :columns="columns"></b-table>
|
||||
|
|
Loading…
Reference in a new issue