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> { 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;
} }

View File

@ -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";