From 04f8a89d75f868c85afb6a12c72ee4770a159026 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 31 Aug 2021 07:44:05 +1000 Subject: [PATCH] Fixes for auto bill --- app/Http/Livewire/RecurringInvoices/UpdateAutoBilling.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/RecurringInvoices/UpdateAutoBilling.php b/app/Http/Livewire/RecurringInvoices/UpdateAutoBilling.php index 8f2144ad0561..dfcd3d771730 100644 --- a/app/Http/Livewire/RecurringInvoices/UpdateAutoBilling.php +++ b/app/Http/Livewire/RecurringInvoices/UpdateAutoBilling.php @@ -21,7 +21,7 @@ class UpdateAutoBilling extends Component public function updateAutoBilling(): void { - if ($this->invoice->auto_bill === 'optin' || $this->invoice->auto_bill === 'optout') { + if ($this->invoice->auto_bill == 'optin' || $this->invoice->auto_bill == 'optout') { $this->invoice->auto_bill_enabled = !$this->invoice->auto_bill_enabled; $this->invoice->save(); }