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.

add window.confirm

Steven Teyb2ab6ae790a2
diff --git a/apps/web/ui/partners/groups/design/branding-form.tsx b/apps/web/ui/partners/groups/design/branding-form.tsx
index 2510db472b..a3badda73d 100644
--- a/apps/web/ui/partners/groups/design/branding-form.tsx
+++ b/apps/web/ui/partners/groups/design/branding-form.tsx
@@ -476,6 +476,13 @@ function Drafts({
<MenuItem
variant="danger"
onClick={() => {
+ if (
+ !window.confirm(
+ "Are you sure you want to discard this draft?",
+ )
+ )
+ return;
+
discardDraft();
setOpen(false);
}}