mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Removed optional chaining from transitType getter to make it crash if boardingPass does not exist
This commit is contained in:
@@ -219,7 +219,7 @@ export default class PKPass extends Bundle {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public get transitType() {
|
public get transitType() {
|
||||||
return this[propsSymbol]["boardingPass"]?.transitType;
|
return this[propsSymbol]["boardingPass"].transitType;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user