X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FMyGames.vue;h=bcf7d18271ad08756e708ea901b5c581a3e13d5c;hp=e84393175520ca444d475053cfb64124106e821a;hb=620a88ede2ad25e66d9cbb521388ee53e4a564c0;hpb=f5227527782de6e888c96a7772fd8fe2539523f3 diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue index e8439317..bcf7d182 100644 --- a/client/src/views/MyGames.vue +++ b/client/src/views/MyGames.vue @@ -102,8 +102,10 @@ export default { (rem == 1 && myColor == "b") ); }; - if (game.type == "live" || !isMyTurn(game)) + if (game.type == "live" || !isMyTurn(game)) { this.$router.push("/game/" + game.id); + return; + } // It's my turn in this game. Are there others? let nextIds = ""; let otherCorrGamesMyTurn = this.corrGames.filter(