Skip to content

Commit

Permalink
These fields in the company id response can be also be uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze committed Jul 27, 2023
1 parent e1ba057 commit be573a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/app/Api/Presenters/CompanyPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public function actionDefault(?string $country, ?string $companyId): void
$data = [
'status' => $info->status,
'statusMessage' => $info->statusMessage,
'companyId' => $info->companyId,
'companyTaxId' => $info->companyTaxId,
'company' => $info->company,
'companyId' => $info->companyId ?? '',
'companyTaxId' => $info->companyTaxId ?? '',
'company' => $info->company ?? '',
'street' => $info->streetFull ?? '',
'city' => $info->city ?? '',
'zip' => $info->zip ?? '',
Expand Down

0 comments on commit be573a5

Please sign in to comment.