diff --git a/app/code/Magento/Checkout/Block/Checkout/AttributeMerger.php b/app/code/Magento/Checkout/Block/Checkout/AttributeMerger.php index 1905826133c2a..dcfe1cd5e2038 100644 --- a/app/code/Magento/Checkout/Block/Checkout/AttributeMerger.php +++ b/app/code/Magento/Checkout/Block/Checkout/AttributeMerger.php @@ -321,24 +321,14 @@ protected function getDefaultValue($attributeCode) return $this->getCustomer()->getFirstname(); } break; - case 'lastname': - if ($this->getCustomer()) { - return $this->getCustomer()->getLastname(); - } - break; case 'middlename': if ($this->getCustomer()) { return $this->getCustomer()->getMiddlename(); } break; - case 'prefix': - if ($this->getCustomer()) { - return $this->getCustomer()->getPrefix(); - } - break; - case 'suffix': + case 'lastname': if ($this->getCustomer()) { - return $this->getCustomer()->getSuffix(); + return $this->getCustomer()->getLastname(); } break; case 'country_id':