diff --git a/app/Models/Customer.php b/app/Models/Customer.php index 5d5e5c7c..5727c483 100644 --- a/app/Models/Customer.php +++ b/app/Models/Customer.php @@ -334,7 +334,9 @@ class Customer extends Authenticatable implements MustVerifyEmail if (!$crmCustomer) { throw new CrmException('CRM get Customer returned null'); } - $data['postcode'] = Arr::get($data, 'postal_code'); + if (isset($data["postal_code"])) { + $data['postcode'] = Arr::get($data, 'postal_code'); + } unset( $data["username"], $data["question_id"],