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

Tim Wilson45cb1a9b6107
diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsx
index 83a6f76b63..94ed347f7d 100644
--- a/apps/web/ui/analytics/toggle.tsx
+++ b/apps/web/ui/analytics/toggle.tsx
@@ -168,9 +168,9 @@ export default function Toggle() {
key: "link",
icon: Hyperlink,
label: "Link",
- getOptionIcon: (value, { option }) => {
+ getOptionIcon: (value, props) => {
const url =
- option?.data?.url ??
+ props.option?.data?.url ??
allLinks?.find(
({ domain, key }) =>
value.includes(key) &&
@@ -203,9 +203,9 @@ export default function Toggle() {
key: "tagId",
icon: Tag,
label: "Tag",
- getOptionIcon: (value, { option }) => {
+ getOptionIcon: (value, props) => {
const tagColor =
- option?.data?.color ??
+ props.option?.data?.color ??
tags?.find(({ id }) => id === value)?.color;
return tagColor ? (
<div