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 type error

Steven Tey47e43ae0d0ed
diff --git a/apps/web/ui/links/use-link-filters.tsx b/apps/web/ui/links/use-link-filters.tsx
index 419e4acc4f..ab49fc922b 100644
--- a/apps/web/ui/links/use-link-filters.tsx
+++ b/apps/web/ui/links/use-link-filters.tsx
@@ -78,21 +78,22 @@ export function useLinkFilters() {
key: "userId",
icon: User,
label: "Creator",
- options: users?.map(({ id, name, image, count }) => ({
- value: id,
- label: name,
- icon: image ? (
- <Avatar
- user={{
- id,
- name,
- image,
- }}
- className="h-4 w-4"
- />
- ) : null,
- right: count,
- })),
+ options:
+ users?.map(({ id, name, image, count }) => ({
+ value: id,
+ label: name,
+ icon: (
+ <Avatar
+ user={{
+ id,
+ name,
+ image,
+ }}
+ className="h-4 w-4"
+ />
+ ),
+ right: count,
+ })) ?? null,
},
];
}, [domains, tags, users]);