diff --git a/app/Http/Livewire/BillingPortalPurchase.php b/app/Http/Livewire/BillingPortalPurchase.php index 6b009b6cb361..4d433b88b34d 100644 --- a/app/Http/Livewire/BillingPortalPurchase.php +++ b/app/Http/Livewire/BillingPortalPurchase.php @@ -349,10 +349,7 @@ class BillingPortalPurchase extends Component $is_eligible = $this->subscription->service()->isEligible($this->contact); - if(is_bool($is_eligible)){ - - } - elseif (is_array($is_eligible) && $is_eligible['exception']['message'] != 'Success') { + if (is_bool($is_eligible) || is_array($is_eligible) && $is_eligible['exception']['message'] != 'Success') { $this->steps['not_eligible'] = true; $this->steps['not_eligible_message'] = $is_eligible['exception']['message']; $this->steps['show_loading_bar'] = false;