perbaikan profil data

This commit is contained in:
2024-07-04 15:30:46 +07:00
parent ae74cf2332
commit 79b6300bf0
3 changed files with 36 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ export class ProfilInformationComponent {
storedData: any;
disableButton: boolean = false
url: any = '';
url: any = 'https://www.w3schools.com/howto/img_avatar.png';
fileSelected: any = null;
constructor(
@@ -46,9 +46,10 @@ export class ProfilInformationComponent {
phone: data.data.phone,
image: [null]
});
this.url = data.data.image_path
if (data.data.image_path !== "https://kapi.absys.ninja/hemat/image/null") {
this.url = data.data.image_path
}
});
}
onSelectFile(event) {