Fix 'challenge' option for anonymous
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 4 Mar 2020 19:32:30 +0000 (20:32 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 4 Mar 2020 19:32:30 +0000 (20:32 +0100)
client/src/views/Hall.vue

index 355010a..eb8b681 100644 (file)
@@ -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 == "/")) {