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.

Update page-client.tsx

Kiran K3131d5fa28b7
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 030adea58b..234592eb60 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
@@ -192,7 +192,9 @@ const EarningsTable = memo(({ customerId }: { customerId: string }) => {
}
viewAllHref={`/programs/${programSlug}/earnings?interval=all&customerId=${customerId}`}
isLoading={isEarningsLoading}
- hideSaleAmount={isPartnerRevenueHidden(programEnrollment?.group)}
+ hideSaleAmount={
+ !programEnrollment || isPartnerRevenueHidden(programEnrollment.group)
+ }
/>
);
});