fixed typo

This commit is contained in:
Glenn Hermans 2021-10-23 15:15:57 +02:00 committed by GitHub
parent 8dd1cb1037
commit bcc28b24d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ class Order extends Model implements OrderContract
{
$pendingInvoice = $this->invoices()->where('state', 'pending')
->orWhere('state', 'pending_payment')
->get();
->first();
if ($pendingInvoice) {
return true;