From 25d60aecb69237cae3e1f47bf86ef2a11594a8c6 Mon Sep 17 00:00:00 2001 From: Sevan Nerse Date: Wed, 1 Jun 2022 14:39:18 +0300 Subject: [PATCH] typo fixed --- app/Models/Banking/Transaction.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Models/Banking/Transaction.php b/app/Models/Banking/Transaction.php index 8cd4712fe..0514df226 100644 --- a/app/Models/Banking/Transaction.php +++ b/app/Models/Banking/Transaction.php @@ -463,7 +463,7 @@ class Transaction extends Model try { if ($this->is_splittable && empty($this->document_id) && empty($this->recurring)) { - $conenct = [ + $connect = [ 'type' => 'button', 'title' => trans('general.connect'), 'icon' => 'sensors', @@ -479,14 +479,14 @@ class Transaction extends Model if ($this->contact->exists) { $document = $this->contact->invoices()->notPaid()->where('currency_code', $this->currency_code)->with(['media', 'totals', 'transactions'])->get()->toJson(); - $conenct['attributes']['@click'] = 'onConnect()'; + $connect['attributes']['@click'] = 'onConnect()'; } else { $document = \App\Models\Document\Document::invoice()->notPaid()->where('currency_code', $this->currency_code)->with(['media', 'totals', 'transactions'])->get()->toJson(); - $conenct['attributes']['@click'] = 'onConnect()'; + $connect['attributes']['@click'] = 'onConnect()'; } - $actions[] = $conenct; + $actions[] = $connect; $actions[] = [ 'type' => 'divider',