mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-27 15:26:41 +00:00
Show enterprise tier
This commit is contained in:
@@ -210,7 +210,8 @@ export default function BillingPage() {
|
|||||||
({ subscription }) =>
|
({ subscription }) =>
|
||||||
subscription?.type === "tier1" ||
|
subscription?.type === "tier1" ||
|
||||||
subscription?.type === "tier2" ||
|
subscription?.type === "tier2" ||
|
||||||
subscription?.type === "tier3"
|
subscription?.type === "tier3" ||
|
||||||
|
subscription?.type === "enterprise"
|
||||||
);
|
);
|
||||||
setTierSubscription(tierSub || null);
|
setTierSubscription(tierSub || null);
|
||||||
|
|
||||||
@@ -439,6 +440,8 @@ export default function BillingPage() {
|
|||||||
// Get current plan ID from tier
|
// Get current plan ID from tier
|
||||||
const getCurrentPlanId = (): PlanId => {
|
const getCurrentPlanId = (): PlanId => {
|
||||||
if (!hasSubscription || !currentTier) return "basic";
|
if (!hasSubscription || !currentTier) return "basic";
|
||||||
|
// Handle enterprise subscription type directly
|
||||||
|
if (currentTier === "enterprise") return "enterprise";
|
||||||
const plan = planOptions.find((p) => p.tierType === currentTier);
|
const plan = planOptions.find((p) => p.tierType === currentTier);
|
||||||
return plan?.id || "basic";
|
return plan?.id || "basic";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user