Fix typo
authorBenjamin Auder <benjamin.auder@somewhere>
Sun, 17 Jan 2021 01:39:02 +0000 (02:39 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sun, 17 Jan 2021 01:39:02 +0000 (02:39 +0100)
client/src/variants/Otage.js
client/src/variants/Pacosako.js

index 3e35767..6f408bb 100644 (file)
@@ -739,7 +739,7 @@ export class OtageRules extends ChessRules {
       this.turn = V.GetOppCol(this.turn);
       this.movesCount--;
     }
-    if (!!move.end.releasd) this.repetitions.pop();
+    if (!!move.end.released) this.repetitions.pop();
     this.postUndo(move);
   }
 
index efc8fd3..d4908a5 100644 (file)
@@ -817,7 +817,7 @@ export class PacosakoRules extends ChessRules {
       this.movesCount--;
     }
     this.umoves.pop();
-    if (!!move.end.releasd) this.repetitions.pop();
+    if (!!move.end.released) this.repetitions.pop();
     this.postUndo(move);
   }