From e986fda63bb977fe6140a6c94dc286ab4e00bb4e Mon Sep 17 00:00:00 2001 From: Songkeys Date: Mon, 3 Apr 2023 23:38:36 +0800 Subject: [PATCH] fix: transitType should be read when type is boardingPass (#137) --- src/PKPass.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PKPass.ts b/src/PKPass.ts index e1347f4..d827be8 100644 --- a/src/PKPass.ts +++ b/src/PKPass.ts @@ -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; + } } }