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

Tim Wilson51b3ba2fa5ab
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.tsx
index ab30370c38..c7d37281a0 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
@@ -180,7 +180,7 @@ export function CustomerPageClient() {
<span className="truncate">{value}</span>
</span>
))
- : isCustomerActivityLoading && (
+ : (isCustomerActivityLoading || !customer) && (
<div className="h-5 w-12 animate-pulse rounded-md bg-neutral-100" />
)}
</div>
@@ -202,7 +202,7 @@ export function CustomerPageClient() {
<div className="flex flex-col gap-2">
<DetailHeading>Lifetime value</DetailHeading>
- {isCustomerActivityLoading ? (
+ {!customer || isCustomerActivityLoading ? (
<div className="h-5 w-12 animate-pulse rounded-md bg-neutral-100" />
) : (
<span>
@@ -218,7 +218,7 @@ export function CustomerPageClient() {
<div className="flex flex-col gap-2">
<DetailHeading>Referral link </DetailHeading>
- {isCustomerActivityLoading ? (
+ {!customer || isCustomerActivityLoading ? (
<div className="h-5 w-12 animate-pulse rounded-md bg-neutral-100" />
) : link ? (
<Link