diff --git a/index.js b/index.js index 7a17e42..aed1d20 100644 --- a/index.js +++ b/index.js @@ -433,7 +433,9 @@ class Pass { 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; }