Fix display for anonymous player in social modal
authorBenjamin Auder <benjamin.auder@somewhere>
Tue, 18 Feb 2020 20:00:34 +0000 (21:00 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Tue, 18 Feb 2020 20:00:34 +0000 (21:00 +0100)
client/src/views/Hall.vue

index 1b8681f..2236ce3 100644 (file)
@@ -67,7 +67,7 @@ main
           )
             span {{ people[sid].name }}
             button.player-action(
-              v-if="sid!=st.user.sid || isGamer(sid)"
+              v-if="isGamer(sid) || (st.user.id > 0 && sid!=st.user.sid)"
               @click="challOrWatch(sid)"
             )
               | {{ getActionLabel(sid) }}