forked from mystiq/hydrogen-web
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> {
|
||||
const response = await this._fetchFlows();
|
||||
this.parseStagesFromResponse(response);
|
||||
await new Promise(r => setTimeout(r, 2000));
|
||||
return this._firstStage;
|
||||
}
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue