The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Fix custom reward bounty creation (#3179)
Tim Wilsond1d93ea44ac4
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/add-edit-bounty-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/add-edit-bounty-sheet.tsxindex da54fad2d2..2cc62a5661 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/add-edit-bounty-sheet.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/add-edit-bounty-sheet.tsx@@ -400,24 +400,23 @@ function BountySheetContent({ setIsOpen, bounty }: BountySheetProps) {const { setShowConfirmCreateBountyModal, confirmCreateBountyModal } =useConfirmCreateBountyModal({- bounty:- !validationError && rewardAmount- ? {- type,- name:- type === "performance" && performanceCondition- ? generatePerformanceBountyName({- rewardAmount: rewardAmount ? rewardAmount * 100 : 0,- condition: performanceCondition,- })- : name || "New bounty",- startsAt: startsAt || new Date(),- endsAt: endsAt || null,- rewardAmount: rewardAmount ? rewardAmount * 100 : null,- rewardDescription: rewardDescription || null,- groups: groupIds?.map((id) => ({ id })) || [],- }- : undefined,+ bounty: !validationError+ ? {+ type,+ name:+ type === "performance" && performanceCondition+ ? generatePerformanceBountyName({+ rewardAmount: rewardAmount ? rewardAmount * 100 : 0,+ condition: performanceCondition,+ })+ : name || "New bounty",+ startsAt: startsAt || new Date(),+ endsAt: endsAt || null,+ rewardAmount: rewardAmount ? rewardAmount * 100 : null,+ rewardDescription: rewardDescription || null,+ groups: groupIds?.map((id) => ({ id })) || [],+ }+ : undefined,onConfirm: async ({ sendNotificationEmails }) => {await performSubmit({ sendNotificationEmails });},