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-danger-zone.component.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'client/src/app/+my-account/my-account-settings/my-account-danger-zone') diff --git a/client/src/app/+my-account/my-account-settings/my-account-danger-zone/my-account-danger-zone.component.ts b/client/src/app/+my-account/my-account-settings/my-account-danger-zone/my-account-danger-zone.component.ts index 387e9e7cd..5005cb630 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-danger-zone/my-account-danger-zone.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-danger-zone/my-account-danger-zone.component.ts @@ -27,15 +27,16 @@ export class MyAccountDangerZoneComponent { ) if (res === false) return - this.userService.deleteMe().subscribe( - () => { - this.notifier.success($localize`Your account is deleted.`) + this.userService.deleteMe() + .subscribe({ + next: () => { + this.notifier.success($localize`Your account is deleted.`) - this.authService.logout() - this.redirectService.redirectToHomepage() - }, + this.authService.logout() + this.redirectService.redirectToHomepage() + }, - err => this.notifier.error(err.message) - ) + error: err => this.notifier.error(err.message) + }) } } -- cgit v1.2.3