From: Benjamin Auder Date: Fri, 7 Feb 2020 14:15:33 +0000 (+0100) Subject: 'update' X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/images/scripts/doc/current/%7B%7B%20targetUrl%20%7D%7D?a=commitdiff_plain;h=c4f6d5a15bac583f9392e4fc1fabee23eaf9d1f5;p=vchess.git 'update' --- diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 799f5ab0..baa9ae19 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -256,7 +256,8 @@ export default { if (!!data.move.cancelDrawOffer) //opponent refuses draw { this.drawOffer = ""; - if (this.game.type == "live") //corr games: reset by player who played + // NOTE for corr games: drawOffer reset by player in turn + if (this.game.type == "live" && !!this.game.mycolor) GameStorage.update(this.gameRef.id, {drawOffer: ""}); } this.$set(this.game, "moveToPlay", data.move);