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 Tey4b6e1d5a16c2
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/activity-list.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/activity-list.tsx
index 6b78338275..a92c79b012 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/activity-list.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/activity-list.tsx
@@ -48,11 +48,11 @@ export function ActivityList({
leads: <LeadDescription event={e as LeadEvent} />,
sales: <SaleDescription event={e as SaleEvent} />,
}[event],
- right: (
+ right: e.timestamp ? (
<div className="whitespace-nowrap">
{timeAgo(new Date(e.timestamp), { withAgo: true })}
</div>
- ),
+ ) : null,
};
})}
totalEvents={totalEvents}