The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add customer to dependency array
Steven Teya96d37c2cc77
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/customers/[customerId]/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/customers/[customerId]/page-client.tsxindex f6566ce5b9..33b6122370 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/customers/[customerId]/page-client.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/customers/[customerId]/page-client.tsx@@ -43,7 +43,7 @@ export function ProgramCustomerPageClient() {// add the max duration to the first sale datereturn addMonths(customer.activity.firstSaleDate, saleReward.maxDuration);- }, [programEnrollment]);+ }, [programEnrollment, customer]);if ((!customer && !isLoading) || !showDetailedAnalytics) {redirect(`/programs/${programSlug}`);