Fixes for null props

This commit is contained in:
David Bomba 2023-06-22 08:51:22 +10:00
parent 0c54b20987
commit 67a73d6cea

View File

@ -132,7 +132,7 @@ class TaxProvider
'city' => $this->client->shipping_city, 'city' => $this->client->shipping_city,
'state' => $this->client->shipping_state, 'state' => $this->client->shipping_state,
'postal_code' => $this->client->shipping_postal_code, 'postal_code' => $this->client->shipping_postal_code,
'country' => $this->client->shipping_country->name, 'country' => $this->client?->shipping_country?->name,
]; ];
$taxable_address = $this->taxShippingAddress() ? $shipping_details : $billing_details; $taxable_address = $this->taxShippingAddress() ? $shipping_details : $billing_details;