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.

nFormatter for eligiblePayouts count

Steven Teyc72b71e69674
diff --git a/apps/web/ui/partners/confirm-payouts-sheet.tsx b/apps/web/ui/partners/confirm-payouts-sheet.tsx
index a0959a55d1..eb44b88885 100644
--- a/apps/web/ui/partners/confirm-payouts-sheet.tsx
+++ b/apps/web/ui/partners/confirm-payouts-sheet.tsx
@@ -39,6 +39,7 @@ import {
currencyFormatter,
fetcher,
formatDate,
+ nFormatter,
OG_AVATAR_URL,
truncate,
} from "@dub/utils";
@@ -346,7 +347,9 @@ function ConfirmPayoutsSheetContent() {
},
{
key: "Partners",
- value: eligiblePayouts?.length ?? (
+ value: eligiblePayouts ? (
+ nFormatter(eligiblePayouts.length, { full: true })
+ ) : (
<div className="h-4 w-24 animate-pulse rounded-md bg-neutral-200" />
),
},