mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Fix errors
This commit is contained in:
parent
d76a059525
commit
a59b67ec45
@ -54,7 +54,6 @@ export class Registration {
|
|||||||
async start(): Promise<BaseRegistrationStage> {
|
async start(): Promise<BaseRegistrationStage> {
|
||||||
const response = await this._fetchFlows();
|
const response = await this._fetchFlows();
|
||||||
this.parseStagesFromResponse(response);
|
this.parseStagesFromResponse(response);
|
||||||
await new Promise(r => setTimeout(r, 2000));
|
|
||||||
return this._firstStage;
|
return this._firstStage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ export abstract class BaseRegistrationStage {
|
|||||||
// registration completed successfully
|
// registration completed successfully
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (response.completed?.forEach(c => c === this.type)) {
|
else if (response.completed?.find(c => c === this.type)) {
|
||||||
return this._nextStage;
|
return this._nextStage;
|
||||||
}
|
}
|
||||||
const error = response.error ?? "Could not parse response";
|
const error = response.error ?? "Could not parse response";
|
||||||
|
Loading…
Reference in New Issue
Block a user