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.

comments

Steven Tey242ba8aecfc3
diff --git a/apps/web/lib/analytics.ts b/apps/web/lib/analytics.ts
index b955ca11bb..137976f78e 100644
--- a/apps/web/lib/analytics.ts
+++ b/apps/web/lib/analytics.ts
@@ -116,6 +116,7 @@ export const getAnalytics = async ({
// get all-time clicks count if:
// 1. endpoint is /clicks
// 2. interval is not defined
+ // 3. linkId is defined
if (endpoint === "clicks" && !interval && linkId) {
let response = await conn.execute(
"SELECT clicks FROM Link WHERE `id` = ?",
diff --git a/apps/web/ui/links/link-card.tsx b/apps/web/ui/links/link-card.tsx
index da9d0f3ac2..277f20a617 100644
--- a/apps/web/ui/links/link-card.tsx
+++ b/apps/web/ui/links/link-card.tsx
@@ -17,7 +17,6 @@ import {
NumberTooltip,
Popover,
SimpleTooltipContent,
- Tick,
Tooltip,
TooltipContent,
useIntersectionObserver,