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 share-dashboard-modal.tsx

Tim Wilson245e1cfd1a3e
diff --git a/apps/web/ui/modals/share-dashboard-modal.tsx b/apps/web/ui/modals/share-dashboard-modal.tsx
index 80cc6be24b..4a98635f43 100644
--- a/apps/web/ui/modals/share-dashboard-modal.tsx
+++ b/apps/web/ui/modals/share-dashboard-modal.tsx
@@ -126,7 +126,7 @@ function ShareDashboardModalInner({
setIsRemoving(false);
};
- const [checked, setChecked] = useState(data !== undefined);
+ const [checked, setChecked] = useState(Boolean(data));
return (
<>