Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Fixed team image not showing on event-types page (#11231)

Patel Divyeshb8794ba80724
diff --git a/apps/web/pages/event-types/index.tsx b/apps/web/pages/event-types/index.tsx
index a3cdc9a9975..ba7c9a11b3c 100644
--- a/apps/web/pages/event-types/index.tsx
+++ b/apps/web/pages/event-types/index.tsx
@@ -715,14 +715,16 @@ const EventTypeListHeading = ({
},
});
const bookerUrl = useBookerUrl();
+
return (
<div className="mb-4 flex items-center space-x-2">
<Avatar
alt={profile?.name || ""}
href={teamId ? `/settings/teams/${teamId}/profile` : "/settings/my-account/profile"}
imageSrc={
- `${orgBranding?.fullDomain ?? WEBAPP_URL}${teamId ? "/team" : ""}/${profile.slug}/avatar.png` ||
- undefined
+ orgBranding?.fullDomain
+ ? `${orgBranding.fullDomain}${teamId ? "/team" : ""}/${profile.slug}/avatar.png`
+ : profile.image
}
size="md"
className="mt-1 inline-flex justify-center"