X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=04ac6b84b0379095af45d731713664659c2e1f6b;hp=fd4bd2da90c99220e84ab78916785ec256308360;hb=3d65195b5713c9e6f58b250069e685e4dca448c2;hpb=05d37cc77857fc683e431820aff39db24bd86835 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(),