The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update bounty-action-button.tsx
Kiran K47fc53e6048c
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-action-button.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-action-button.tsxindex 239a580c6e..3900d9ccb3 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-action-button.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-action-button.tsx@@ -44,14 +44,17 @@ export function BountyActionButton({},);- if (!response.ok) throw new Error("Failed to delete bounty");+ if (!response.ok) {+ const { error } = await response.json();+ throw new Error(error.message);+ }await mutatePrefix("/api/bounties");},{loading: "Deleting bounty...",success: "Bounty deleted successfully!",- error: (err) => err,+ error: (error) => error,},);},