mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Improved check in nfc adding
This commit is contained in:
4
index.js
4
index.js
@@ -433,7 +433,9 @@ class Pass {
|
|||||||
|
|
||||||
let valid = data.filter(d => d instanceof Object && schema.isValid(d, "nfcDict"));
|
let valid = data.filter(d => d instanceof Object && schema.isValid(d, "nfcDict"));
|
||||||
|
|
||||||
this.props["nfc"] = valid;
|
if (valid.length) {
|
||||||
|
this.props["nfc"] = valid;
|
||||||
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user