Let type also be undefined

This commit is contained in:
RMidhunSuresh 2022-02-04 17:11:33 +05:30
parent 22d5505a2b
commit 028b96e4c5

View File

@ -73,7 +73,7 @@ export class Registration {
throw new Error("flowSelector did not return any flow!"); throw new Error("flowSelector did not return any flow!");
} }
let firstStage: BaseRegistrationStage | undefined; let firstStage: BaseRegistrationStage | undefined;
let lastStage: BaseRegistrationStage; let lastStage: BaseRegistrationStage | undefined;
for (const stage of flow.stages) { for (const stage of flow.stages) {
const registrationStage = this._createRegistrationStage(stage, session, params); const registrationStage = this._createRegistrationStage(stage, session, params);
if (!firstStage) { if (!firstStage) {