'update'
authorBenjamin Auder <benjamin.auder@somewhere>
Fri, 7 Feb 2020 14:15:33 +0000 (15:15 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Fri, 7 Feb 2020 14:15:33 +0000 (15:15 +0100)
client/src/views/Game.vue

index 799f5ab..baa9ae1 100644 (file)
@@ -256,7 +256,8 @@ export default {
           if (!!data.move.cancelDrawOffer) //opponent refuses draw
           {
             this.drawOffer = "";
           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);
               GameStorage.update(this.gameRef.id, {drawOffer: ""});
           }
           this.$set(this.game, "moveToPlay", data.move);