fix: Team creation with private avatar. Do not attempt to copy, closes #4378

This commit is contained in:
Tom Moor
2022-11-03 08:58:33 -04:00
parent c2de6b70bc
commit f2fb5dd1e5
2 changed files with 1 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ async function teamCreator({
}: Props): Promise<Team> {
// If the service did not provide a logo/avatar then we attempt to generate
// one via ClearBit, or fallback to colored initials in worst case scenario
if (!avatarUrl) {
if (!avatarUrl || !avatarUrl.startsWith("http")) {
avatarUrl = await generateAvatarUrl({
name,
domain,