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.

removed loading dots from home link card

Steven Tey30b324043c42
diff --git a/components/home/link-card.tsx b/components/home/link-card.tsx
index b872924253..660ed660d0 100644
--- a/components/home/link-card.tsx
+++ b/components/home/link-card.tsx
@@ -114,7 +114,7 @@ export default function LinkCard({
homepageDemo: true,
});
- const { data: clicks, isValidating } = useSWR<number>(
+ const { data: clicks } = useSWR<number>(
`/api/edge/links/${key}/clicks`,
fetcher,
{
@@ -174,7 +174,7 @@ export default function LinkCard({
>
<Chart className="h-4 w-4" />
<p className="text-sm">
- {isValidating ? (
+ {!clicks && clicks != 0 ? (
<LoadingDots color="#71717A" />
) : (
nFormatter(clicks)