mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Fixed maxDistance problem
This commit is contained in:
2
index.js
2
index.js
@@ -213,7 +213,7 @@ class Pass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (type === "maxDistance" && (typeof data === "string" || typeof data === "number")) {
|
if (type === "maxDistance" && (typeof data === "string" || typeof data === "number")) {
|
||||||
this.props[type] = String(data);
|
this.props[type] = Number(data);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
} else if (type === "relevantDate") {
|
} else if (type === "relevantDate") {
|
||||||
|
|||||||
Reference in New Issue
Block a user