Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix nextPlan null error

Steven Teya4facc331acf
diff --git a/packages/utils/src/constants/pricing.tsx b/packages/utils/src/constants/pricing.tsx
index e166de4ab2..c45489d614 100644
--- a/packages/utils/src/constants/pricing.tsx
+++ b/packages/utils/src/constants/pricing.tsx
@@ -370,7 +370,6 @@ export const getCurrentPlan = (plan: string) => {
export const getNextPlan = (plan?: string | null) => {
if (!plan) return PRO_PLAN;
- if (plan.toLowerCase() === "enterprise") return null;
return PLANS[
PLANS.findIndex((p) => p.name.toLowerCase() === plan.toLowerCase()) + 1
];