diff --git a/webclient/src/components/RoomList.vue b/webclient/src/components/RoomList.vue index cd8d715..f5fa8fd 100644 --- a/webclient/src/components/RoomList.vue +++ b/webclient/src/components/RoomList.vue @@ -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" }); } diff --git a/webclient/src/components/RoomLog.vue b/webclient/src/components/RoomLog.vue index 879fcb4..9fe8d10 100644 --- a/webclient/src/components/RoomLog.vue +++ b/webclient/src/components/RoomLog.vue @@ -1,4 +1,3 @@ -