diff --git a/src/PKPass.ts b/src/PKPass.ts index 8140090..fe5f1d8 100644 --- a/src/PKPass.ts +++ b/src/PKPass.ts @@ -360,7 +360,8 @@ export default class PKPass extends Bundle { } /** - * Allows accessing to backFields object + * Allows accessing to new iOS 18 + * event ticket additional fields * * @throws (automatically) if no valid pass.json * has been parsed yet or, anyway, if current @@ -614,11 +615,14 @@ export default class PKPass extends Bundle { this.secondaryFields.push(...secondaryFields); this.auxiliaryFields.push(...auxiliaryFields); this.backFields.push(...backFields); - this.additionalInfoFields.push(...additionalInfoFields); if (this.type === "boardingPass") { this.transitType = transitType; } + + if (this.type === "eventTicket") { + this.additionalInfoFields.push(...additionalInfoFields); + } } }