From f73544839586d5e50529617f3649a84ac9e0ab86 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 4 Nov 2017 18:20:13 +0100 Subject: Fix error messages on client forms --- .../account-change-password/account-change-password.component.ts | 2 +- client/src/app/account/account-details/account-details.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/account') diff --git a/client/src/app/account/account-change-password/account-change-password.component.ts b/client/src/app/account/account-change-password/account-change-password.component.ts index dba141296..69edec54b 100644 --- a/client/src/app/account/account-change-password/account-change-password.component.ts +++ b/client/src/app/account/account-change-password/account-change-password.component.ts @@ -59,7 +59,7 @@ export class AccountChangePasswordComponent extends FormReactive implements OnIn this.userService.changePassword(newPassword).subscribe( () => this.notificationsService.success('Success', 'Password updated.'), - err => this.error = err + err => this.error = err.message ) } } diff --git a/client/src/app/account/account-details/account-details.component.ts b/client/src/app/account/account-details/account-details.component.ts index 78e365a62..d7a6e6871 100644 --- a/client/src/app/account/account-details/account-details.component.ts +++ b/client/src/app/account/account-details/account-details.component.ts @@ -62,7 +62,7 @@ export class AccountDetailsComponent extends FormReactive implements OnInit { this.authService.refreshUserInformation() }, - err => this.error = err + err => this.error = err.message ) } } -- cgit v1.2.3