From e10075dfeded36f15e7c9848e30201e559d9fba6 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Wed, 18 Dec 2024 08:47:36 +0300 Subject: [PATCH] fix: message error text --- src/pages/login/login.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/login/login.component.ts b/src/pages/login/login.component.ts index 677a2f9..fb22b30 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 instanceof String ? error.error : error.statusText; + this.errorText = error.error instanceof String ? error.statusText : error.error; this.loginButtonIsDisable = true; throw error; }))