diff --git a/libs/auth/src/angular/login/login.component.ts b/libs/auth/src/angular/login/login.component.ts index bf0c9607f8..2175d2e4a6 100644 --- a/libs/auth/src/angular/login/login.component.ts +++ b/libs/auth/src/angular/login/login.component.ts @@ -249,16 +249,16 @@ export class LoginComponent implements OnInit, OnDestroy { } // If none of the above cases are true, proceed with login... - // ...on Web if (this.clientType === ClientType.Web) { await this.goAfterLogIn(authResult.userId); - // ...on Browser/Desktop - } else if (this.clientType === ClientType.Browser) { - this.loginEmailService.clearValues(); + } + + this.loginEmailService.clearValues(); + + if (this.clientType === ClientType.Browser) { await this.router.navigate(["/tabs/vault"]); } else { await this.router.navigate(["vault"]); - this.loginEmailService.clearValues(); } }