X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FRecycle.js;h=82895f351d345410c70988f49291da6b5a1f86f4;hb=42a9284896b9cf9a579d32b7cf77dfc1f5786472;hp=73d9166989a394f00746298d766d66e0ba139c98;hpb=e727fe31742dfb3e40eb222c94f4199e2be98453;p=vchess.git diff --git a/client/src/variants/Recycle.js b/client/src/variants/Recycle.js index 73d91669..82895f35 100644 --- a/client/src/variants/Recycle.js +++ b/client/src/variants/Recycle.js @@ -19,7 +19,7 @@ export const VariantRules = class RecycleRules extends ChessRules { } getEpSquare(moveOrSquare) { - if (typeof moveOrSquare !== "object" || move.vanish.length > 0) + if (typeof moveOrSquare !== "object" || moveOrSquare.vanish.length > 0) return super.getEpSquare(moveOrSquare); // Landing move: no en-passant return undefined;