fix: set the text based on the context
All checks were successful
Build and Deploy Angular App / build (push) Successful in 2m32s

This commit is contained in:
Polianin Nikita 2024-10-09 03:11:09 +03:00
parent 0bbed93df2
commit 9231bd0d4a

View File

@ -82,7 +82,7 @@ export class LoginComponent {
}) })
.pipe(catchError(error => { .pipe(catchError(error => {
this.loaderActive = false; this.loaderActive = false;
this.errorText = error.error; this.errorText = error.error instanceof String ? error.error : error.statusText;
this.loginButtonIsDisable = true; this.loginButtonIsDisable = true;
throw error; throw error;
})) }))