Skip to content

Commit

Permalink
fix: Fixed team image not showing on event-types page (calcom#11231)
Browse files Browse the repository at this point in the history
Co-authored-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
  • Loading branch information
3 people authored Sep 11, 2023
1 parent 9b8e4ed commit b8794ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/web/pages/event-types/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b8794ba

Please sign in to comment.