From 028b96e4c547302389a09efa63cd8e65a22dde68 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 4 Feb 2022 17:11:33 +0530 Subject: [PATCH] Let type also be undefined --- src/matrix/registration/Registration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/registration/Registration.ts b/src/matrix/registration/Registration.ts index 3d8ec9fc..a0b4eb89 100644 --- a/src/matrix/registration/Registration.ts +++ b/src/matrix/registration/Registration.ts @@ -73,7 +73,7 @@ export class Registration { throw new Error("flowSelector did not return any flow!"); } let firstStage: BaseRegistrationStage | undefined; - let lastStage: BaseRegistrationStage; + let lastStage: BaseRegistrationStage | undefined; for (const stage of flow.stages) { const registrationStage = this._createRegistrationStage(stage, session, params); if (!firstStage) {