diff --git a/src/pages/login/login.component.ts b/src/pages/login/login.component.ts index aab3260..677a2f9 100644 --- a/src/pages/login/login.component.ts +++ b/src/pages/login/login.component.ts @@ -82,7 +82,7 @@ export class LoginComponent { }) .pipe(catchError(error => { this.loaderActive = false; - this.errorText = error.error; + this.errorText = error.error instanceof String ? error.error : error.statusText; this.loginButtonIsDisable = true; throw error; }))