diff --git a/api/src/Contacts/JsContact.php b/api/src/Contacts/JsContact.php index f7b71d17bf..ac2be3a756 100644 --- a/api/src/Contacts/JsContact.php +++ b/api/src/Contacts/JsContact.php @@ -518,12 +518,12 @@ class JsContact $components = []; foreach(func_get_args() as $street) { - if ($components) - { - $components[] = ['type' => 'separator', 'value' => "\n"]; - } if (!empty($street)) { + if ($components) + { + $components[] = ['type' => 'separator', 'value' => "\n"]; + } $components[] = ['type' => 'name', 'value' => $street]; } }