We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d8148 commit adb6517Copy full SHA for adb6517
app/code/Magento/CustomerGraphQl/Model/Customer/ExtractCustomerData.php
@@ -105,7 +105,9 @@ public function execute(CustomerInterface $customer): array
105
$customerData['group_id'] = null;
106
$customerData['model'] = $customer;
107
$customerData['id'] = null;
108
- $customerData['date_of_birth'] = $customerData['dob'];
+ if (!empty($customerData['dob'])) {
109
+ $customerData['date_of_birth'] = $customerData['dob'];
110
+ }
111
return $customerData;
112
}
113
0 commit comments