fix: fix subscriptions list display (#4967)

This commit is contained in:
Alexis Saettler
2021-03-16 14:20:11 +01:00
committed by GitHub
parent 99c353e4ec
commit ca217056bb
2 changed files with 3 additions and 2 deletions
@@ -41,7 +41,6 @@ class SubscriptionsController extends Controller
]);
}
$planId = $account->getSubscribedPlanId();
try {
$nextBillingDate = $account->getNextBillingDate();
} catch (StripeException $e) {
@@ -55,7 +54,7 @@ class SubscriptionsController extends Controller
}
return view('settings.subscriptions.account', [
'planInformation' => InstanceHelper::getPlanInformationFromConfig($planId),
'planInformation' => InstanceHelper::getPlanInformationFromConfig($subscription->name),
'nextBillingDate' => $nextBillingDate,
'subscription' => $subscription,
'hasInvoices' => $hasInvoices,