mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Added initialization of additionalInfoField only if we are on an eventTicket
This commit is contained in:
@@ -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
|
* @throws (automatically) if no valid pass.json
|
||||||
* has been parsed yet or, anyway, if current
|
* has been parsed yet or, anyway, if current
|
||||||
@@ -614,11 +615,14 @@ export default class PKPass extends Bundle {
|
|||||||
this.secondaryFields.push(...secondaryFields);
|
this.secondaryFields.push(...secondaryFields);
|
||||||
this.auxiliaryFields.push(...auxiliaryFields);
|
this.auxiliaryFields.push(...auxiliaryFields);
|
||||||
this.backFields.push(...backFields);
|
this.backFields.push(...backFields);
|
||||||
this.additionalInfoFields.push(...additionalInfoFields);
|
|
||||||
|
|
||||||
if (this.type === "boardingPass") {
|
if (this.type === "boardingPass") {
|
||||||
this.transitType = transitType;
|
this.transitType = transitType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.type === "eventTicket") {
|
||||||
|
this.additionalInfoFields.push(...additionalInfoFields);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user