diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-02-25 14:38:12 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-02-25 14:38:12 +0200 |
| commit | eab7b2108d91af1c905f795febf811d5cc404863 (patch) | |
| tree | 968c641667d60532c0dbc97bd13d3284f3bbcdc6 /src/app/components/profile-settings | |
| parent | a7bf5cad6bf66f2cd7e12fc436410fafb7826b10 (diff) | |
| download | DevHive-Angular-eab7b2108d91af1c905f795febf811d5cc404863.tar DevHive-Angular-eab7b2108d91af1c905f795febf811d5cc404863.tar.gz DevHive-Angular-eab7b2108d91af1c905f795febf811d5cc404863.zip | |
Removed unnecessary variables from request subscriptions
Diffstat (limited to 'src/app/components/profile-settings')
| -rw-r--r-- | src/app/components/profile-settings/profile-settings.component.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/app/components/profile-settings/profile-settings.component.ts b/src/app/components/profile-settings/profile-settings.component.ts index a484665..f3cd4c1 100644 --- a/src/app/components/profile-settings/profile-settings.component.ts +++ b/src/app/components/profile-settings/profile-settings.component.ts @@ -56,7 +56,7 @@ export class ProfileSettingsComponent implements OnInit { this.isAdminUser = this.user.roles.map(x => x.name).includes(AppConstants.ADMIN_ROLE_NAME); this.finishUserLoading(); }, - (err: HttpErrorResponse) => { + () => { this._router.navigate(['/not-found']); } ); @@ -89,7 +89,7 @@ export class ProfileSettingsComponent implements OnInit { this.goToProfile(); } }, - (err: HttpErrorResponse) => { + () => { this.logout(); } ); @@ -181,7 +181,7 @@ export class ProfileSettingsComponent implements OnInit { } this._userService.putProfilePictureFromSessionStorageRequest(this.newProfilePicture).subscribe( - (result: object) => { + () => { this.reloadPage(); } ); @@ -196,7 +196,7 @@ export class ProfileSettingsComponent implements OnInit { this.patchTechnologiesControl(); this._userService.putUserFromSessionStorageRequest(this.updateUserFormGroup, this.user.roles, this.user.friends).subscribe( - (result: object) => { + () => { this._successBar.showMsg('Profile updated successfully!'); }, (err: HttpErrorResponse) => { @@ -285,7 +285,7 @@ export class ProfileSettingsComponent implements OnInit { deleteAccount(): void { if (this.deleteAccountConfirm) { this._userService.deleteUserFromSessionStorageRequest().subscribe( - (res: object) => { + () => { this.logout(); }, (err: HttpErrorResponse) => { |
