From 67a73d6cea42d46a6488e6f0a761c4c48843772d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 22 Jun 2023 08:51:22 +1000 Subject: [PATCH] Fixes for null props --- app/Services/Tax/Providers/TaxProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Tax/Providers/TaxProvider.php b/app/Services/Tax/Providers/TaxProvider.php index c43315d40920..eee35cc3e36e 100644 --- a/app/Services/Tax/Providers/TaxProvider.php +++ b/app/Services/Tax/Providers/TaxProvider.php @@ -132,7 +132,7 @@ class TaxProvider 'city' => $this->client->shipping_city, 'state' => $this->client->shipping_state, '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;