diff --git a/app/Repositories/Shop/CustomerAddresses.php b/app/Repositories/Shop/CustomerAddresses.php index 766637bb..86e2f480 100644 --- a/app/Repositories/Shop/CustomerAddresses.php +++ b/app/Repositories/Shop/CustomerAddresses.php @@ -23,7 +23,7 @@ class CustomerAddresses public static function add($user_id, $data) { - if ($data['use_for_delivery']) { + if ($data['use_for_delivery'] ?? false) { return self::store([ 'customer_id' => $user_id, 'address' => $data['delivery_address'],