fix: message error text

This commit is contained in:
Polianin Nikita 2024-12-18 08:47:36 +03:00
parent 2b482d2b2d
commit e10075dfed

View File

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