diff --git a/app/Livewire/ProfileImageUploader.php b/app/Livewire/ProfileImageUploader.php index 9086622..28a3e70 100644 --- a/app/Livewire/ProfileImageUploader.php +++ b/app/Livewire/ProfileImageUploader.php @@ -24,7 +24,7 @@ public function mount($color): void public function save(): void { - sleep(1); + if (auth()->user()->profile_photo) { $fullPath = Storage::path(auth()->user()->profile_photo); // Replace the path to the storage folder diff --git a/resources/views/profile/partials/update-profile-information-form.blade.php b/resources/views/profile/partials/update-profile-information-form.blade.php index 4799306..d0567cb 100644 --- a/resources/views/profile/partials/update-profile-information-form.blade.php +++ b/resources/views/profile/partials/update-profile-information-form.blade.php @@ -18,9 +18,11 @@ @method('patch')