mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for subscrpitions
This commit is contained in:
parent
43c52ab753
commit
14994c0e5b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user