From a88ef592de3917a3d17d7bf433f75a38212dbdda Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 23 Dec 2022 11:56:07 +1100 Subject: [PATCH] Refactor for livewire --- app/Http/Livewire/PayNowDropdown.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Http/Livewire/PayNowDropdown.php b/app/Http/Livewire/PayNowDropdown.php index d0b1e1190b33..077e78b05d4f 100644 --- a/app/Http/Livewire/PayNowDropdown.php +++ b/app/Http/Livewire/PayNowDropdown.php @@ -23,13 +23,11 @@ class PayNowDropdown extends Component public $company; - public function mount(int $total) + public function mount() { MultiDB::setDb($this->company->db); - $this->total = $total; - - $this->methods = auth()->guard('contact')->user()->client->service()->getPaymentMethods($total); + $this->methods = auth()->guard('contact')->user()->client->service()->getPaymentMethods($this->total); } public function render()