From 35e4cc122e105f343ea602922b7efdd3b0730c4e Mon Sep 17 00:00:00 2001 From: Sean Brydon Date: Tue, 19 Sep 2023 15:25:27 +0100 Subject: [PATCH] Normal constants --- packages/lib/constants.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/lib/constants.ts b/packages/lib/constants.ts index 651c2b0037..46eeee11fe 100644 --- a/packages/lib/constants.ts +++ b/packages/lib/constants.ts @@ -33,12 +33,11 @@ export const SENDER_NAME = process.env.NEXT_PUBLIC_SENDGRID_SENDER_NAME || "Cal. export const CAL_URL = new URL(WEBAPP_URL).hostname.endsWith(".vercel.app") ? WEBAPP_URL : WEBSITE_URL; export const IS_CALCOM = - true || - (WEBAPP_URL && - (new URL(WEBAPP_URL).hostname.endsWith("cal.com") || - new URL(WEBAPP_URL).hostname.endsWith("cal.dev") || - new URL(WEBAPP_URL).hostname.endsWith("cal.qa") || - new URL(WEBAPP_URL).hostname.endsWith("cal-staging.com"))); + !!WEBAPP_URL && + (new URL(WEBAPP_URL).hostname.endsWith("cal.com") || + new URL(WEBAPP_URL).hostname.endsWith("cal.dev") || + new URL(WEBAPP_URL).hostname.endsWith("cal.qa") || + new URL(WEBAPP_URL).hostname.endsWith("cal-staging.com")); export const CONSOLE_URL = new URL(WEBAPP_URL).hostname.endsWith(".cal.dev") ||