The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix billing page bug
Steven Teycd4a236c3f78
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsxindex 2286873aaf..ad11abd9be 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx@@ -53,7 +53,6 @@ export default function PlanUsage() {plan,role,stripeId,- defaultProgramId,usage,usageLimit,linksUsage,diff --git a/apps/web/scripts/send-batch-emails.ts b/apps/web/scripts/send-batch-emails.tsindex d078dd7ced..c048eccd99 100644--- a/apps/web/scripts/send-batch-emails.ts+++ b/apps/web/scripts/send-batch-emails.ts@@ -11,17 +11,17 @@ async function main() {const usersWithPartners = await prisma.user.findMany({where: {sentMail: false,+ defaultPartnerId: {+ not: null,+ },partners: {some: {},},- email: {- not: null,- },notificationPreferences: {partnerAccount: true,},},- take: 1000,+ take: 5000,include: {partners: {select: {diff --git a/packages/utils/src/constants/pricing/pricing-plans.tsx b/packages/utils/src/constants/pricing/pricing-plans.tsxindex 503cd14f9f..e8d46a050a 100644--- a/packages/utils/src/constants/pricing/pricing-plans.tsx+++ b/packages/utils/src/constants/pricing/pricing-plans.tsx@@ -576,7 +576,8 @@ export const getPlanDetails = ({planTier?: number;}) => {const planDetails = PLANS.find(- (p) => p.name.toLowerCase() === plan.toLowerCase(),+ // to account for old Business plans (e.g. "Business Plus")+ (p) => p.name.toLowerCase() === plan.split(" ")[0].toLowerCase(),)!;return enrichPlanWithTierData(planDetails, planTier);@@ -584,7 +585,8 @@ export const getPlanDetails = ({export const getNextPlan = (plan?: string | null) => {if (!plan) return PRO_PLAN;- const currentPlan = plan.toLowerCase().split(" ")[0]; // to account for old Business plans (e.g. "Business Plus")+ // to account for old Business plans (e.g. "Business Plus")+ const currentPlan = plan.toLowerCase().split(" ")[0];return PLANS[Math.min(// returns the next plan, or the last plan if the current plan is the last plan