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 duplicate bounty submission details key

Steven Teydf4ef342a1ed
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 ad405df5a9..18bafd4418 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
@@ -322,7 +322,10 @@ function BountySubmissionDetailsSheetContent({
</h2>
<div className="mt-2 flex flex-col gap-2">
{submission.urls?.map((url, idx) => (
- <div className="relative" key={url}>
+ <div
+ className="relative"
+ key={`${submission.id}-${idx}-${url}`}
+ >
<div className="border-border-subtle block w-full rounded-lg border px-3 py-2 pl-10 pr-12">
<a
href={url}