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

Steven Teyaf324fd5c004
diff --git a/apps/web/ui/partners/partner-info-cards.tsx b/apps/web/ui/partners/partner-info-cards.tsx
index 8d05e40c7a..37857dc261 100644
--- a/apps/web/ui/partners/partner-info-cards.tsx
+++ b/apps/web/ui/partners/partner-info-cards.tsx
@@ -195,11 +195,15 @@ export function PartnerInfoCards({
: []),
// Referred by
- {
- id: "referredBy",
- icon: <UserArrowRight className="size-3.5 shrink-0" />,
- text: <ReferredByPartner partner={partner} />,
- },
+ ...(type === "enrolled"
+ ? [
+ {
+ id: "referredBy",
+ icon: <UserArrowRight className="size-3.5 shrink-0" />,
+ text: <ReferredByPartner partner={partner} />,
+ },
+ ]
+ : []),
]);
}
@@ -499,7 +503,7 @@ function ReferredByPartner({
}: {
partner: Pick<
EnrolledPartnerExtendedProps,
- "id" | "name" | "image" | "email" | "groupId"
+ "id" | "name" | "image" | "email" | "groupId" | "totalCommissions"
>;
}) {
const { slug } = useWorkspace();