Fix errors

This commit is contained in:
RMidhunSuresh 2021-12-26 21:54:27 +05:30
parent d76a059525
commit a59b67ec45
2 changed files with 1 additions and 2 deletions

View file

@ -54,7 +54,6 @@ export class Registration {
async start(): Promise<BaseRegistrationStage> {
const response = await this._fetchFlows();
this.parseStagesFromResponse(response);
await new Promise(r => setTimeout(r, 2000));
return this._firstStage;
}

View file

@ -55,7 +55,7 @@ export abstract class BaseRegistrationStage {
// registration completed successfully
return true;
}
else if (response.completed?.forEach(c => c === this.type)) {
else if (response.completed?.find(c => c === this.type)) {
return this._nextStage;
}
const error = response.error ?? "Could not parse response";