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 use-bounty-submission-filters.tsx

Steven Teyc02c16e66305
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/use-bounty-submission-filters.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/use-bounty-submission-filters.tsx
index 97808ddc98..edf272c2bf 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/use-bounty-submission-filters.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/use-bounty-submission-filters.tsx
@@ -27,42 +27,34 @@ export function useBountySubmissionFilters({
const filters = useMemo(
() => [
- ...(bounty?.type === "submission"
- ? [
- {
- key: "status",
- icon: CircleDotted,
- label: "Status",
- options:
- bounty?.type === "submission" && submissionsCount
- ? submissionsCount.map(({ status, count }) => {
- {
- const {
- label,
- icon: Icon,
- iconClassName,
- } = BOUNTY_SUBMISSION_STATUS_BADGES[status];
- return {
- value: status,
- label,
- icon: (
- <Icon
- className={cn(
- "size-4 bg-transparent",
- iconClassName,
- )}
- />
- ),
- right: nFormatter(count, {
- full: true,
- }),
- };
- }
- })
- : null,
- },
- ]
- : []),
+ {
+ key: "status",
+ icon: CircleDotted,
+ label: "Status",
+ options: submissionsCount
+ ? submissionsCount.map(({ status, count }) => {
+ {
+ const {
+ label,
+ icon: Icon,
+ iconClassName,
+ } = BOUNTY_SUBMISSION_STATUS_BADGES[status];
+ return {
+ value: status,
+ label,
+ icon: (
+ <Icon
+ className={cn("size-4 bg-transparent", iconClassName)}
+ />
+ ),
+ right: nFormatter(count, {
+ full: true,
+ }),
+ };
+ }
+ })
+ : null,
+ },
{
key: "groupId",
icon: Users6,