From f5df49f540671295af448ac7c8466216d58b354b Mon Sep 17 00:00:00 2001 From: alexandercerutti Date: Mon, 20 Aug 2018 18:09:01 +0200 Subject: [PATCH] Fixed maxDistance problem --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fa38ac0..b718671 100644 --- a/index.js +++ b/index.js @@ -213,7 +213,7 @@ class Pass { } if (type === "maxDistance" && (typeof data === "string" || typeof data === "number")) { - this.props[type] = String(data); + this.props[type] = Number(data); return 1; } else if (type === "relevantDate") {