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()