X-Git-Url: https://git.auder.net/images/pieces/current/gitweb.js?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=04ac6b84b0379095af45d731713664659c2e1f6b;hb=af34341d92d47d14f396e7f4adb81f2a7e9d9a61;hp=fd4bd2da90c99220e84ab78916785ec256308360;hpb=077ba3446c4ea3c6553c325fc8d16a96b7a9ff4f;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index fd4bd2da..04ac6b84 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -1182,10 +1182,13 @@ export default { // NOTE: when launching game, the challenge is already being deleted launchGame: function(c) { // White player index 0, black player index 1: - const players = + let players = !!c.mycolor ? (c.mycolor == "w" ? [c.seat, c.from] : [c.from, c.seat]) : shuffle([c.from, c.seat]); + players.forEach(p => { + if (!!p["tmpIds"]) delete p["tmpIds"]; + }); // These game informations will be shared let gameInfo = { id: getRandString(),