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 confirm-payouts-sheet.tsx

Tim Wilsonf4ac00a9fc9d
diff --git a/apps/web/ui/partners/confirm-payouts-sheet.tsx b/apps/web/ui/partners/confirm-payouts-sheet.tsx
index b69a1272a6..3eb5fb5a6f 100644
--- a/apps/web/ui/partners/confirm-payouts-sheet.tsx
+++ b/apps/web/ui/partners/confirm-payouts-sheet.tsx
@@ -113,7 +113,10 @@ function ConfirmPayoutsSheetContent() {
error: eligiblePayoutsError,
isLoading: eligiblePayoutsLoading,
} = useSWR<PayoutResponse[]>(
- `/api/programs/${defaultProgramId}/payouts/eligible?${new URLSearchParams({ ...commonQuery, page: pagination.pageIndex.toString() }).toString()}`,
+ `/api/programs/${defaultProgramId}/payouts/eligible?${new URLSearchParams({
+ ...commonQuery,
+ page: pagination.pageIndex.toString(),
+ }).toString()}`,
fetcher,
);
@@ -422,11 +425,12 @@ function ConfirmPayoutsSheetContent() {
},
{
key: "Partners",
- value: eligiblePayouts ? (
- nFormatter(eligiblePayouts.length, { full: true })
- ) : (
- <div className="h-4 w-24 animate-pulse rounded-md bg-neutral-200" />
- ),
+ value:
+ eligiblePayoutsCount !== undefined ? (
+ nFormatter(eligiblePayoutsCount, { full: true })
+ ) : (
+ <div className="h-4 w-24 animate-pulse rounded-md bg-neutral-200" />
+ ),
},
{
key: "Amount",