mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 22:25:24 +00:00
Added constructor check on certificates to avoid an error if a pass is created using PKPass.from, without specifying the certificates
This commit is contained in:
@@ -157,7 +157,9 @@ export default class PKPass extends Bundle {
|
||||
Object.assign(this[propsSymbol], overridesValidation);
|
||||
}
|
||||
|
||||
this.certificates = certificates;
|
||||
if (certificates) {
|
||||
this.certificates = certificates;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user