diff --git a/src/lib/stores/billing.ts b/src/lib/stores/billing.ts index 3454d2ba71..2909f69534 100644 --- a/src/lib/stores/billing.ts +++ b/src/lib/stores/billing.ts @@ -586,6 +586,8 @@ export function checkForMarkedForDeletion(org: Models.Organization) { } export async function checkForMissingPaymentMethod() { + if (!isCloud) return; + const starterPlan = getBasePlanFromGroup(BillingPlanGroup.Starter); if (!starterPlan?.$id) { return; @@ -613,6 +615,8 @@ export async function checkForMissingPaymentMethod() { // Display upgrade banner for new users after 1 week for 30 days export async function checkForNewDevUpgradePro(org: Models.Organization) { + if (!isCloud) return; + // browser or plan check. if (!browser || !org.billingPlanDetails.supportsCredits) return;