From 1ebb011fa84d6877841950691a7af6aae9a8770e Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Wed, 4 Mar 2020 20:32:30 +0100 Subject: [PATCH] Fix 'challenge' option for anonymous --- client/src/views/Hall.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 355010a3..eb8b6811 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -370,14 +370,9 @@ export default { return this.people[sid].pages.some(p => p.indexOf("/game/") >= 0); }, getActionLabel: function(sid) { - - -console.log(this.people[sid]); - - - return this.people[sid].pages.some(p => p == "/") - ? "Challenge" - : "Observe"; + return this.people[sid].pages.some(p => p == "/game/") + ? "Observe" + : "Challenge"; }, challOrWatch: function(sid) { if (this.people[sid].pages.some(p => p == "/")) { -- 2.44.0