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.

Fix performanceCondition in bounty form

Tim Wilson3f3ab450753e
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.tsx
index cb633397ff..a7d9678be0 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
@@ -99,9 +99,14 @@ function BountySheetContent({ setIsOpen, bounty }: BountySheetProps) {
type: bounty?.type || "performance",
submissionRequirements: bounty?.submissionRequirements || null,
groupIds: bounty?.groups?.map(({ id }) => id) || null,
- performanceCondition: bounty?.performanceCondition || {
- operator: "gte",
- },
+ performanceCondition: bounty?.performanceCondition
+ ? {
+ ...bounty.performanceCondition,
+ value: bounty.performanceCondition.value / 100,
+ }
+ : {
+ operator: "gte",
+ },
},
});