Fix for incorrect country displaying

This commit is contained in:
David Bomba 2020-08-08 07:44:49 +10:00
parent 2dff1f44d2
commit 651fdeabdb

View File

@ -59,7 +59,7 @@ class CompanyPresenter extends EntityPresenter
if ($cityState = $this->getCompanyCityState($settings)) { if ($cityState = $this->getCompanyCityState($settings)) {
$str .= e($cityState) . '<br/>'; $str .= e($cityState) . '<br/>';
} }
if ($country = Country::find($settings->country_id)->first()) { if ($country = Country::find($settings->country_id)) {
$str .= e($country->name) . '<br/>'; $str .= e($country->name) . '<br/>';
} }
if ($settings->phone) { if ($settings->phone) {