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 comission-type-icon.tsx

Steven Tey103cc932e23b
diff --git a/apps/web/ui/partners/comission-type-icon.tsx b/apps/web/ui/partners/comission-type-icon.tsx
index 7b073d3be5..65788a4649 100644
--- a/apps/web/ui/partners/comission-type-icon.tsx
+++ b/apps/web/ui/partners/comission-type-icon.tsx
@@ -22,6 +22,8 @@ export const CommissionTypeIcon = ({
type: z.infer<typeof PartnerEarningsSchema>["type"];
className?: string;
}) => {
+ if (!type) return null;
+
const { icon: Icon, className: iconClassName } = ICONS_MAP[type];
return <Icon className={cn("size-4", iconClassName, className)} />;