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.

fix analytics error message

Steven Teyde49eac2a763
diff --git a/apps/web/ui/analytics/index.tsx b/apps/web/ui/analytics/index.tsx
index 6300cc682c..8ba331f01b 100644
--- a/apps/web/ui/analytics/index.tsx
+++ b/apps/web/ui/analytics/index.tsx
@@ -187,7 +187,7 @@ export default function Analytics({
));
setRequiresUpgrade(true);
} else {
- toast.error(error.message);
+ toast.error(JSON.parse(error.message)?.error.message);
}
},
onErrorRetry: (error, ...args) => {