Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/lib/stores/billing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down