diff --git a/src/Service/API/ShipmentApiService.php b/src/Service/API/ShipmentApiService.php index aca8034..84b1489 100644 --- a/src/Service/API/ShipmentApiService.php +++ b/src/Service/API/ShipmentApiService.php @@ -90,7 +90,7 @@ public function __construct( public function createShipment($addressId, ShipmentData $shipmentData, $orderId) { $address = new Address($addressId); - $isCompany = $shipmentData->getCompany() ? true : false; + $isCompany = trim($shipmentData->getCompany()) ? true : false; $firstName = $shipmentData->getName(); if ($isCompany) { $firstName = $shipmentData->getCompany();