From: Benjamin Auder Date: Fri, 6 Mar 2020 16:59:36 +0000 (+0100) Subject: Fix 'next' button X-Git-Url: https://git.auder.net/variants/Bario/js/doc/rpsls.js?a=commitdiff_plain;h=dc821737247aee1a0d93a232a292eeda940d06bc;p=vchess.git Fix 'next' button --- diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue index d1f3e38a..e8439317 100644 --- a/client/src/views/MyGames.vue +++ b/client/src/views/MyGames.vue @@ -90,6 +90,7 @@ export default { showGame: function(game) { // TODO: "isMyTurn" is duplicated (see GameList component). myColor also const isMyTurn = (g) => { + if (g.score != "*") return false; const myColor = g.players[0].uid == this.st.user.id || g.players[0].sid == this.st.user.sid