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.

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.tsx
index 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 date
return addMonths(customer.activity.firstSaleDate, saleReward.maxDuration);
- }, [programEnrollment]);
+ }, [programEnrollment, customer]);
if ((!customer && !isLoading) || !showDetailedAnalytics) {
redirect(`/programs/${programSlug}`);