diff --git a/src/lib/stores/billing.ts b/src/lib/stores/billing.ts index fcdb3ab83..81675b4f6 100644 --- a/src/lib/stores/billing.ts +++ b/src/lib/stores/billing.ts @@ -183,7 +183,7 @@ export function calculateTrialDay(org: Organization) { } export async function checkForUsageLimit(org: Organization) { - if (org.billingPlan !== BillingPlan.STARTER) { + if (org?.billingPlan !== BillingPlan.STARTER) { readOnly.set(false); return; } diff --git a/src/routes/console/+layout.svelte b/src/routes/console/+layout.svelte index dd45948cc..ad4d7c0ab 100644 --- a/src/routes/console/+layout.svelte +++ b/src/routes/console/+layout.svelte @@ -274,6 +274,7 @@ await checkPaymentAuthorizationRequired(org); await checkForMandate(org); } + $activeHeaderAlert = headerAlert.get(); } });