Fixes for null contact
This commit is contained in:
parent
b9c198f38e
commit
0ca668f7ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue