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 claim-bounty-modal.tsx

Kiran K912473d02626
diff --git a/apps/web/ui/partners/bounties/claim-bounty-modal.tsx b/apps/web/ui/partners/bounties/claim-bounty-modal.tsx
index bd87df9a9a..fc081885eb 100644
--- a/apps/web/ui/partners/bounties/claim-bounty-modal.tsx
+++ b/apps/web/ui/partners/bounties/claim-bounty-modal.tsx
@@ -73,6 +73,7 @@ function ClaimBountyModalContent({
id: uuid(),
url: file.url,
uploading: false,
+ file: undefined,
}));
}
@@ -152,7 +153,7 @@ function ClaimBountyModalContent({
const isDraft = submitter?.name === "draft";
const finalFiles = files
- .filter(({ file, url }) => file && url)
+ .filter(({ url }) => url)
.map(({ file, url }) => ({
url: url!,
fileName: file?.name || "File",