Fix introduced bug when preventing to move when choices are shown
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 19 Mar 2020 20:02:58 +0000 (21:02 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 19 Mar 2020 20:02:58 +0000 (21:02 +0100)
client/src/components/Board.vue

index 447040f..921a599 100644 (file)
@@ -317,8 +317,8 @@ export default {
               // Force a delay between move is shown and clicked
               // (otherwise a "double-click" bug might occur)
               if (Date.now() - this.clickTime < 200) return;
-              this.play(m);
               this.choices = [];
+              this.play(m);
             };
             const onClick =
               this.mobileBrowser