The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix bounty submission review UX
Steven Teyb4194398ef2e
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submissions-table.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submissions-table.tsxindex 9db1921b75..f5136d958d 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submissions-table.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submissions-table.tsx@@ -130,7 +130,10 @@ export function BountySubmissionsTable() {const currentIndex = submissions.findIndex((s) => s.id === detailsSheetState.submission!.id,);- if (currentIndex === -1) return [null, null];++ // if the current submission is not found, return the current details sheet submission id+ // and the first submission id as the previous and next submission ids+ if (currentIndex === -1) return [null, submissions[0].id];return [currentIndex > 0 ? submissions[currentIndex - 1].id : null,