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