Remove domain parameter and update avatarUrl check

This commit is contained in:
Tom Moor authored and GitHub committed 2025-04-06 15:28:34 -07:00
1 parent dc474573c6
commit 90f9721b40
1 file changed
+1 -4
+1 -4
View File
@@ -28,16 +28,13 @@ type Props = {
async function teamCreator({
name,
domain,
subdomain,
avatarUrl,
authenticationProviders,
ip,
transaction,
}: Props): Promise<Team> {
// If the service did not provide a logo/avatar then we'll use the default
// avatar generation mechanism as Clearbit API is being discontinued
if (!avatarUrl || !avatarUrl.startsWith("http")) {
if (!avatarUrl.startsWith("http")) {
avatarUrl = null;
}