The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix isEnrolled
Steven Tey0dc2416a3d8c
diff --git a/apps/web/ui/partners/partner-info-cards.tsx b/apps/web/ui/partners/partner-info-cards.tsxindex 37857dc261..2ed160fc1b 100644--- a/apps/web/ui/partners/partner-info-cards.tsx+++ b/apps/web/ui/partners/partner-info-cards.tsx@@ -195,7 +195,7 @@ export function PartnerInfoCards({: []),// Referred by- ...(type === "enrolled"+ ...(isEnrolled? [{id: "referredBy",@@ -545,22 +545,17 @@ function ReferredByPartner({);}- // No referring partner- if (!referral?.referredBy) {- return (- <>- <AttributeReferringPartnerModal />- <button- type="button"- onClick={() => setShowAttributeReferringPartnerModal(true)}- aria-label="Attribute referring partner"- className="bg-bg-inverted/5 text-content-default hover:bg-bg-inverted/10 inline-flex h-6 min-h-6 min-w-0 select-none items-center whitespace-nowrap rounded-md px-1.5 py-0.5 text-xs font-medium"- >- Attribute referring partner- </button>- </>- );- }-- return null;+ return (+ <>+ <AttributeReferringPartnerModal />+ <button+ type="button"+ onClick={() => setShowAttributeReferringPartnerModal(true)}+ aria-label="Attribute referring partner"+ className="bg-bg-inverted/5 text-content-default hover:bg-bg-inverted/10 inline-flex h-6 min-h-6 min-w-0 select-none items-center whitespace-nowrap rounded-md px-1.5 py-0.5 text-xs font-medium"+ >+ Attribute referring partner+ </button>+ </>+ );}