WIP: problems with best deals.

This commit is contained in:
2021-06-16 09:59:57 +02:00
parent 8eba80f7d4
commit c88efc5484
5 changed files with 30 additions and 9 deletions
@@ -18,7 +18,6 @@ export class SigninComponent implements OnInit {
private isSignUpFailed: boolean;
private errorMessage: '';
constructor(
private formBuilder: FormBuilder,
private api: ApiService,
@@ -43,10 +42,9 @@ export class SigninComponent implements OnInit {
this.api.loginUser(this.loginForm.value.username, this.loginForm.value.password)
.subscribe(
data => {
this.router.navigate(['']);
this.isSuccessful = true;
this.isSignUpFailed = false;
this.api.saveSessionInfoToLocalStorage(data);
this.router.navigate(['']);
},
err => {
this.errorMessage = err.error.message;