From 1378c0d343028f3d40d7d795422684ab9e6a1599 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Aug 2021 11:27:47 +0200 Subject: Fix client lint --- .../my-account-profile/my-account-profile.component.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts') diff --git a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts index 80e4446c8..f395ad73f 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts @@ -50,15 +50,16 @@ export class MyAccountProfileComponent extends FormReactive implements OnInit { this.error = null - this.userService.updateMyProfile({ displayName, description }).subscribe( - () => { + this.userService.updateMyProfile({ displayName, description }) + .subscribe({ + next: () => { this.user.account.displayName = displayName this.user.account.description = description this.notifier.success($localize`Profile updated.`) }, - err => this.error = err.message - ) + error: err => this.error = err.message + }) } } -- cgit v1.2.3