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 main.tsx

Steven Tey6b966ba2a4e8
diff --git a/apps/web/ui/analytics/main.tsx b/apps/web/ui/analytics/main.tsx
index 3a67064234..5f0d3fee05 100644
--- a/apps/web/ui/analytics/main.tsx
+++ b/apps/web/ui/analytics/main.tsx
@@ -91,7 +91,7 @@ export default function Main() {
const total = {
clicks: data?.clicks,
leads: data?.leads,
- sales: (data?.amount ?? 0) / 100,
+ sales: data?.amount ? data.amount / 100 : undefined,
}[id];
return (