From 9700951a3ed5e00be013492ec929361f76df5a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=AEittaG=20ordnasselA?= Date: Tue, 11 Jun 2019 16:12:12 +0200 Subject: [PATCH] Fix player/spectator counters --- webclient/src/components/RoomList.vue | 6 ++++-- webclient/src/components/RoomLog.vue | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) 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 @@ -