From f4caa11800a9afb3d7f9959ff0643fec3fa9d739 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Fri, 20 May 2022 15:41:57 -0500 Subject: [PATCH] Correct login page flow --- src/app/login/login.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index 2e740a8..9898140 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -156,8 +156,13 @@ export class LoginComponent implements OnInit, AfterViewInit { this.userService.findUser(); this.userUpdate.subscribe((user) => { if (user.blocktime > 0) { - if(this.myStepper!.selectedIndex === 1){ + if(this.myStepper!.selectedIndex === 0) { this.myStepper!.next(); + this.myStepper!.next(); + } else { + if(this.myStepper!.selectedIndex === 1){ + this.myStepper!.next(); + } } //console.log('Log in found in blockchain!'); if (user.validated) {