From 4aed769da4eb9806cb67f59e16c2b53b3a957bc1 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Thu, 20 Apr 2023 01:01:29 +0200 Subject: [PATCH] Invert domain check, make default logo work --- apps/web/pages/api/logo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/pages/api/logo.ts b/apps/web/pages/api/logo.ts index 86250b6b01..0e7f0e66c2 100644 --- a/apps/web/pages/api/logo.ts +++ b/apps/web/pages/api/logo.ts @@ -71,7 +71,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) if (!domains) throw new Error("No domains"); const [subdomain, domain] = domains; // Only supported on cal.com and cal.dev - if (!["cal.com", "cal.dev"].includes(domain)) return handleDefaultLogo(req, res, parsedQuery); + if (["cal.com", "cal.dev"].includes(domain)) return handleDefaultLogo(req, res, parsedQuery); // Skip if no subdomain if (!subdomain) throw new Error("No subdomain"); // Omit system subdomains