X-Git-Url: https://git.auder.net/js/rpsls.js?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=38ec2b302759f75e0e223f192f33c67d7157b295;hb=a0c41e7e23c9ff64031739e072f38e493bac8dca;hp=db8f528b00f069f844b125e83a75715c849dc984;hpb=8c5f5390efed4753d6ac1b7bf84dc9922dd0df7e;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index db8f528b..38ec2b30 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -483,12 +483,12 @@ export default { challOrWatch: function(sid, e) { switch (e.target.innerHTML) { - case "Challenge": + case "Available": this.tryChallenge(sid); break; case "Playing": this.showGame(this.games.find( - g => g.type=="live" && g.players.some(pl => pl.sid == sid))); + g => g.players.some(pl => pl.sid == sid || pl.uid == this.people[sid].id))); break; }; },