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 delete-domain-modal.tsx

Steven Teya645a10078ae
diff --git a/apps/web/ui/modals/delete-domain-modal.tsx b/apps/web/ui/modals/delete-domain-modal.tsx
index 6cf20ba204..9da8354b21 100644
--- a/apps/web/ui/modals/delete-domain-modal.tsx
+++ b/apps/web/ui/modals/delete-domain-modal.tsx
@@ -57,7 +57,8 @@ function DeleteDomainModal({
setShowDeleteDomainModal(false);
toast.success("Successfully deleted domain!");
} else {
- toast.error("Something went wrong. Please try again.");
+ const { error } = await res.json();
+ toast.error(error.message);
}
setDeleting(false);
});