From: Benjamin Auder Date: Wed, 4 Mar 2020 19:32:30 +0000 (+0100) Subject: Fix 'challenge' option for anonymous X-Git-Url: https://git.auder.net/doc/html/pieces/current/R.css?a=commitdiff_plain;h=1ebb011fa84d6877841950691a7af6aae9a8770e;p=vchess.git Fix 'challenge' option for anonymous --- 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 == "/")) {