The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
touch ups
Steven Tey1e88e703592e
diff --git a/apps/web/ui/links/link-card.tsx b/apps/web/ui/links/link-card.tsxindex bc697c1daa..a5829f6ef1 100644--- a/apps/web/ui/links/link-card.tsx+++ b/apps/web/ui/links/link-card.tsx@@ -88,7 +88,9 @@ export default function LinkCard({const isVisible = !!entry?.isIntersecting;const { data: clicks } = useSWR<number>(+ // only fetch clicks if the link is visible and there's a slug and the usage is not exceededisVisible &&+ slug &&!exceededClicks &&`/api/projects/${slug}/stats/clicks?domain=${domain}&key=${key}`,fetcher,@@ -247,7 +249,7 @@ export default function LinkCard({) : (<BlurImagesrc={`${GOOGLE_FAVICON_URL}${apexDomain}`}- alt={apexDomain}+ alt={apexDomain || encodeURIComponent(url)}className="h-8 w-8 rounded-full sm:h-10 sm:w-10"width={20}height={20}diff --git a/apps/web/ui/shared/blur-image.tsx b/apps/web/ui/shared/blur-image.tsxindex e9e8d995aa..1a44f30fa9 100644--- a/apps/web/ui/shared/blur-image.tsx+++ b/apps/web/ui/shared/blur-image.tsx@@ -9,7 +9,7 @@ export function BlurImage(props: ImageProps) {const [src, setSrc] = useState(props.src);useEffect(() => setSrc(props.src), [props.src]); // update the `src` value when the `prop.src` value changes- const handleLoad = (e) => {+ const handleLoad = (e: React.SyntheticEvent<HTMLImageElement, Event>) => {setLoading(false);const target = e.target as HTMLImageElement;if (target.naturalWidth < 20 && target.naturalHeight < 20) {