diff --git a/app/Services/Payment/SendEmail.php b/app/Services/Payment/SendEmail.php index 39c3e063f7fc..be7326098c9c 100644 --- a/app/Services/Payment/SendEmail.php +++ b/app/Services/Payment/SendEmail.php @@ -36,7 +36,7 @@ class SendEmail $contact = $this->payment->client->contacts()->first(); - if ($contact->email) + if ($contact?->email) EmailPayment::dispatch($this->payment, $this->payment->company, $contact); }