diff --git a/app/Models/Presenters/ClientContactPresenter.php b/app/Models/Presenters/ClientContactPresenter.php index fc87b8b7854f..3c2dc014246d 100644 --- a/app/Models/Presenters/ClientContactPresenter.php +++ b/app/Models/Presenters/ClientContactPresenter.php @@ -20,8 +20,13 @@ class ClientContactPresenter extends EntityPresenter * @return string */ public function name() - { - return $this->entity->first_name.' '.$this->entity->last_name; + { + $contact_name = $this->entity->first_name.' '.$this->entity->last_name; + + if(strlen($contact_name) > 1) + return $contact_name; + + return $this->entity->client->present()->name(); } public function first_name()