Fix typo
[vchess.git] / client / src / variants / Atomic.js
index 4aad7b7..fdc665d 100644 (file)
@@ -2,7 +2,7 @@ import { ChessRules, PiPo } from "@/base_rules";
 
 export const VariantRules = class AtomicRules extends ChessRules {
   getEpSquare(moveOrSquare) {
-    if (typeof moveOrSquare !== "object" || move.appear.length > 0)
+    if (typeof moveOrSquare !== "object" || moveOrSquare.appear.length > 0)
       return super.getEpSquare(moveOrSquare);
     // Capturing move: no en-passant
     return undefined;