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 bounty-submission-details-sheet.tsx

Kiran K8f45149b0f6c
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx
index 71a4436102..8e5449ae36 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx
@@ -75,10 +75,6 @@ function BountySubmissionDetailsSheetContent({
},
});
- if (!submission || !partner) {
- return null;
- }
-
const isValidForm = useMemo(() => {
if (bounty?.rewardAmount) {
return true;
@@ -91,6 +87,10 @@ function BountySubmissionDetailsSheetContent({
return true;
}, [bounty, rewardAmount]);
+ if (!submission || !partner) {
+ return null;
+ }
+
return (
<div className="flex h-full flex-col">
<div className="sticky top-0 z-10 border-b border-neutral-200 bg-white">