mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 12:25:17 +00:00
fix: transitType should be read when type is boardingPass (#137)
This commit is contained in:
@@ -556,6 +556,7 @@ export default class PKPass extends Bundle {
|
||||
secondaryFields = [],
|
||||
auxiliaryFields = [],
|
||||
backFields = [],
|
||||
transitType,
|
||||
} = data[type] || {};
|
||||
|
||||
this.headerFields.push(...headerFields);
|
||||
@@ -563,6 +564,9 @@ export default class PKPass extends Bundle {
|
||||
this.secondaryFields.push(...secondaryFields);
|
||||
this.auxiliaryFields.push(...auxiliaryFields);
|
||||
this.backFields.push(...backFields);
|
||||
if (this.type === "boardingPass") {
|
||||
this.transitType = transitType;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user