fixes gravatar fallback for team collective events (#1759)

This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2022-02-09 18:56:02 -07:00
1 parent 712dceb8cb
commit 97fdfc5d6b
5 files changed
+23 -8

No files matched your search

@@ -126,7 +126,7 @@ const AvailabilityPage = ({ profile, eventType, workingHours }: Props) => {
.filter((user) => user.name !== profile.name)
.map((user) => ({
title: user.name,
image: user.avatar || undefined,
image: `${process.env.NEXT_PUBLIC_APP_URL}/${user.username}/avatar.png`,
alt: user.name || undefined,
})),
].filter((item) => !!item.image) as { image: string; alt?: string; title?: string }[]
@@ -175,7 +175,7 @@ const AvailabilityPage = ({ profile, eventType, workingHours }: Props) => {
.map((user) => ({
title: user.name,
alt: user.name,
image: user.avatar,
image: `${process.env.NEXT_PUBLIC_APP_URL}/${user.username}/avatar.png`,
})),
].filter((item) => !!item.image) as { image: string; alt?: string; title?: string }[]
}