Fix errors
This commit is contained in:
parent
d76a059525
commit
a59b67ec45
2 changed files with 1 additions and 2 deletions
|
@ -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";
|
||||||
|
|
Reference in a new issue