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.

Show placeholder when identity sync preview has no name (#4179)

Pedro Ladeira774fc9579b82
diff --git a/apps/web/ui/modals/identity-sync-confirm-modal.tsx b/apps/web/ui/modals/identity-sync-confirm-modal.tsx
index b00aef1677..2f8cbb5728 100644
--- a/apps/web/ui/modals/identity-sync-confirm-modal.tsx
+++ b/apps/web/ui/modals/identity-sync-confirm-modal.tsx
@@ -50,21 +50,23 @@ function IdentitySyncPreviewRow({
/>
)}
<div>
- {showName && snapshot.name && (
+ {showName && (
<div
className={
- isNameContextOnly
- ? "text-[14px] font-semibold leading-4 text-neutral-900 opacity-50"
- : "text-[14px] font-semibold leading-4 text-neutral-900"
+ snapshot.name
+ ? isNameContextOnly
+ ? "text-[14px] font-semibold leading-4 text-neutral-900 opacity-50"
+ : "text-[14px] font-semibold leading-4 text-neutral-900"
+ : "text-[14px] font-medium leading-4 text-neutral-500"
}
>
- {snapshot.name}
+ {snapshot.name || "No name set"}
</div>
)}
{showEmail && snapshot.email && (
<div
className={
- showName && snapshot.name
+ showName
? "mt-1 text-sm font-medium leading-5 text-neutral-500"
: "text-sm font-medium leading-5 text-neutral-900"
}