From: Benjamin Auder Date: Wed, 4 Mar 2020 19:19:41 +0000 (+0100) Subject: Fix display of other live games X-Git-Url: https://git.auder.net/js/pieces/bundles/doc/html/common.css?a=commitdiff_plain;h=bd5c8a789d6ba16c02a77c9c7702c18f68579d69;p=vchess.git Fix display of other live games --- diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 1031e49c..f8add795 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -600,7 +600,8 @@ export default { // NOTE: it may be live or correspondance const game = data.data; // Ignore games where I play (corr games) - if (game.players.every(p => p.id != this.st.user.id)) + if (game.players.every(p => + p.sid != this.st.user.sid || p.id != this.st.user.id)) { let locGame = this.games.find(g => g.id == game.id); if (!locGame) {