The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update page-client.tsx
Kiran Kd0bef4ae8b70
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/customers/[customerId]/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/customers/[customerId]/page-client.tsxindex 5f2b6203c0..c7c01aed0b 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/customers/[customerId]/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/customers/[customerId]/page-client.tsx@@ -200,7 +200,12 @@ const PartnerEarningsTable = memo(const { data: commissions, isLoading: isComissionsLoading } = useSWR<CommissionResponse[]>(- `/api/commissions?customerId=${customerId}&workspaceId=${workspaceId}&programId=${programId}&pageSize=${CUSTOMER_PAGE_EVENTS_LIMIT}`,+ `/api/commissions?${new URLSearchParams({+ customerId,+ programId,+ workspaceId: workspaceId!,+ pageSize: CUSTOMER_PAGE_EVENTS_LIMIT.toString(),+ })}`,fetcher,);@@ -208,7 +213,11 @@ const PartnerEarningsTable = memo(useSWR<{ all: { count: number } }>(// Only fetch total earnings count if the earnings data is equal to the limitcommissions?.length === CUSTOMER_PAGE_EVENTS_LIMIT &&- `/api/commissions/count?customerId=${customerId}&workspaceId=${workspaceId}&programId=${programId}`,+ `/api/commissions/count?${new URLSearchParams({+ customerId,+ programId,+ workspaceId: workspaceId!,+ })}`,fetcher,);