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.

differentiate invitation avatars by email

Steven Tey1d6b55de0ba3
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/people/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/people/page-client.tsx
index 198af5cc9c..14195315bb 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/people/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/people/page-client.tsx
@@ -183,7 +183,12 @@ const UserCard = ({
>
<div className="flex items-start space-x-3">
<div className="flex items-center space-x-3">
- <Avatar user={user} />
+ <Avatar
+ user={{
+ ...user,
+ id: currentTab === "Invitations" ? user.email : user.id,
+ }}
+ />
<div className="flex flex-col">
<h3 className="text-sm font-medium">{name || email}</h3>
<p className="text-xs text-gray-500">{email}</p>