From 66e0197b504e99ecf9aeea637a0ffe90a603f7b7 Mon Sep 17 00:00:00 2001 From: Ludovic CANDELLIER Date: Thu, 29 Dec 2022 19:23:28 +0100 Subject: [PATCH] fix --- app/Repositories/Shop/CustomerAddresses.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'],