private userService: UserService,
private authService: AuthService,
private notifier: Notifier
- ) {}
+ ) {}
get userInformationLoaded () {
return this.authService.userInformationLoaded
next: data => {
this.notifier.success($localize`Avatar changed.`)
- this.user.updateAccountAvatar(data.avatar)
+ this.user.updateAccountAvatar(data.avatars)
},
error: (err: HttpErrorResponse) => genericUploadErrorHandler({