Merge pull request #1026 from appwrite/fix-header-alert-first-load

fix: header alert not showing on first load
This commit is contained in:
Torsten Dittmann authored and GitHub committed 2024-04-12 13:04:40 +02:00
commit bf4be15516
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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;
}
+1
View File
@@ -274,6 +274,7 @@
await checkPaymentAuthorizationRequired(org);
await checkForMandate(org);
}
$activeHeaderAlert = headerAlert.get();
}
});