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.

fixed application error

Steven Teyb80a0cf4fc5b
diff --git a/components/stats/toggle.tsx b/components/stats/toggle.tsx
index 090959dfaa..4040cf2142 100644
--- a/components/stats/toggle.tsx
+++ b/components/stats/toggle.tsx
@@ -132,9 +132,10 @@ const SharePopover = ({ domain }: { domain: string }) => {
}
}, [slug]);
- const {
- data: { publicStats },
- } = useSWR<{ publicStats: boolean }>(endpoint, fetcher);
+ const { data: { publicStats } = {} } = useSWR<{ publicStats: boolean }>(
+ endpoint,
+ fetcher,
+ );
const handleChange = async () => {
toast.promise(