aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account-settings/account-details/account-details.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/account/account-settings/account-details/account-details.component.ts')
-rw-r--r--client/src/app/account/account-settings/account-details/account-details.component.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/client/src/app/account/account-settings/account-details/account-details.component.ts b/client/src/app/account/account-settings/account-details/account-details.component.ts
index b8c19d8d6..917f31651 100644
--- a/client/src/app/account/account-settings/account-details/account-details.component.ts
+++ b/client/src/app/account/account-settings/account-details/account-details.component.ts
@@ -14,8 +14,6 @@ import { FormReactive, User, UserService } from '../../../shared'
14export class AccountDetailsComponent extends FormReactive implements OnInit { 14export class AccountDetailsComponent extends FormReactive implements OnInit {
15 @Input() user: User = null 15 @Input() user: User = null
16 16
17 error: string = null
18
19 form: FormGroup 17 form: FormGroup
20 formErrors = {} 18 formErrors = {}
21 validationMessages = {} 19 validationMessages = {}
@@ -50,7 +48,6 @@ export class AccountDetailsComponent extends FormReactive implements OnInit {
50 autoPlayVideo 48 autoPlayVideo
51 } 49 }
52 50
53 this.error = null
54 this.userService.updateMyDetails(details).subscribe( 51 this.userService.updateMyDetails(details).subscribe(
55 () => { 52 () => {
56 this.notificationsService.success('Success', 'Information updated.') 53 this.notificationsService.success('Success', 'Information updated.')
@@ -58,7 +55,7 @@ export class AccountDetailsComponent extends FormReactive implements OnInit {
58 this.authService.refreshUserInformation() 55 this.authService.refreshUserInformation()
59 }, 56 },
60 57
61 err => this.error = err.message 58 err => this.notificationsService.error('Error', err.message)
62 ) 59 )
63 } 60 }
64} 61}