diff --git a/app/View/Components/Form/Group/Account.php b/app/View/Components/Form/Group/Account.php index e53ac272f..13f33a5cd 100644 --- a/app/View/Components/Form/Group/Account.php +++ b/app/View/Components/Form/Group/Account.php @@ -52,7 +52,7 @@ class Account extends Form $selected_account = $model->account; } - if (! empty($selected_account) && ! $this->accounts->has($selected_account->id)) { + if (! empty($selected_account) && ! $this->accounts->contains('id', $selected_account->id)) { $this->accounts->push($selected_account); }