From bf2f72b14dcd3ffb75d0b65b8a26fc9536f2cddc Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Sat, 23 Oct 2021 00:41:22 +0200 Subject: [PATCH] Removed optional chaining from transitType getter to make it crash if boardingPass does not exist --- src/PKPass.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PKPass.ts b/src/PKPass.ts index de40f9a..7740235 100644 --- a/src/PKPass.ts +++ b/src/PKPass.ts @@ -219,7 +219,7 @@ export default class PKPass extends Bundle { */ public get transitType() { - return this[propsSymbol]["boardingPass"]?.transitType; + return this[propsSymbol]["boardingPass"].transitType; } /**