mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Let type also be undefined
This commit is contained in:
parent
22d5505a2b
commit
028b96e4c5
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user