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 add-edit-bounty-sheet.tsx

Kiran Ke325d434c1c8
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 b7e4777c50..3fa2cfbda4 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
@@ -213,8 +213,10 @@ function BountySheetContent({ setIsOpen, bounty }: BountySheetProps) {
if (!hasSubmissionWindow) {
setValue("submissionsOpenAt", null);
setSubmissionWindow(null);
+ } else if (!submissionWindow) {
+ setSubmissionWindow(2);
}
- }, [hasSubmissionWindow, setValue]);
+ }, [hasSubmissionWindow, submissionWindow, setValue]);
// Calculate the submissionsOpenAt based on the submissionWindow & endsAt
useEffect(() => {