mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: temporary hot fix for group.
This commit is contained in:
@@ -89,8 +89,12 @@ export function planHasGroup(billingPlanId: string, group: BillingPlanGroup) {
|
||||
export function getBasePlanFromGroup(billingPlanGroup: BillingPlanGroup): Models.BillingPlan {
|
||||
const plansInfoStore = get(plansInfo);
|
||||
|
||||
// hot fix for now, starter doesn't have a group atm.
|
||||
const correctBillingPlanGroup =
|
||||
billingPlanGroup === BillingPlanGroup.Starter ? null : billingPlanGroup;
|
||||
|
||||
const proPlans = Array.from(plansInfoStore.values()).filter(
|
||||
(plan) => plan.group === billingPlanGroup
|
||||
(plan) => plan.group === correctBillingPlanGroup
|
||||
);
|
||||
|
||||
return proPlans.sort((a, b) => a.order - b.order)[0];
|
||||
|
||||
Reference in New Issue
Block a user