Compare commits

..

1 Commits

Author SHA1 Message Date
codegen-sh[bot] 26be6dcf98 Remove avatars.ts and avatars.test.ts files and update teamCreator.ts 2025-04-06 22:27:06 +00:00
+4 -1
View File
@@ -28,13 +28,16 @@ type Props = {
async function teamCreator({
name,
domain,
subdomain,
avatarUrl,
authenticationProviders,
ip,
transaction,
}: Props): Promise<Team> {
if (!avatarUrl?.startsWith("http")) {
// If the service did not provide a logo/avatar then we'll use the default
// avatar generation mechanism (colored initials)
if (!avatarUrl || !avatarUrl.startsWith("http")) {
avatarUrl = null;
}