Update constants.ts - fix crashing by adding optional chaining for this value (#17103)

This commit is contained in:
Avishay Maor authored and GitHub committed 2024-10-15 07:32:27 +00:00
1 parent 2be9fc8bc0
commit 2c25f88100
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,7 @@ export const TRIAL_LIMIT_DAYS = 14;
export const HOSTED_CAL_FEATURES = process.env.NEXT_PUBLIC_HOSTED_CAL_FEATURES || !IS_SELF_HOSTED;
export const IS_EUROPE = dayjs.tz.guess().indexOf("Europe") !== -1;
export const IS_EUROPE = dayjs.tz.guess()?.indexOf("Europe") !== -1;
/** @deprecated use `WEBAPP_URL` */
export const NEXT_PUBLIC_BASE_URL = process.env.NEXT_PUBLIC_WEBAPP_URL || `https://${process.env.VERCEL_URL}`;