From b06c9c18fc9a91bc988d676e4e902749714d9300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 24 Sep 2020 14:40:20 +0200 Subject: [PATCH] Update country_id for personal country id --- app/Http/Livewire/Profile/Settings/PersonalAddress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/Profile/Settings/PersonalAddress.php b/app/Http/Livewire/Profile/Settings/PersonalAddress.php index 6a1488a249a0..7cd0030fcd81 100644 --- a/app/Http/Livewire/Profile/Settings/PersonalAddress.php +++ b/app/Http/Livewire/Profile/Settings/PersonalAddress.php @@ -37,7 +37,7 @@ class PersonalAddress extends Component 'city' => auth()->user('contact')->client->city, 'state' => auth()->user('contact')->client->state, 'postal_code' => auth()->user('contact')->client->postal_code, - 'country_id' => optional(auth()->user('contact')->client->country)->id, + 'country_id' => auth()->user('contact')->client->country_id, 'countries' => $countries, 'saved' => ctrans('texts.save'),