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