diff --git a/src/app/components/profile/profile.component.ts b/src/app/components/profile/profile.component.ts index 412b106..cd29dd3 100644 --- a/src/app/components/profile/profile.component.ts +++ b/src/app/components/profile/profile.component.ts @@ -73,8 +73,8 @@ export class ProfileComponent implements OnInit { formData.append('profilePicture', event.target.files[0]); this.http.post('https://greenvironment.net/upload', formData).subscribe( - async (response: Response) => { - this.userProfile.profilePicture = 'https://greenvironment.net/' + (await response.json()).filename; + (response: any) => { + this.userProfile.profilePicture = 'https://greenvironment.net/' + response.filename; }, (error) => console.log(error) );