From 173e7846e8d5c8f757af933888106674e8df74e2 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Thu, 7 Apr 2022 18:21:16 +0530 Subject: [PATCH] Fix team booking (#2417) --- packages/lib/defaultEvents.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/lib/defaultEvents.ts b/packages/lib/defaultEvents.ts index a04887b4..861b16da 100644 --- a/packages/lib/defaultEvents.ts +++ b/packages/lib/defaultEvents.ts @@ -139,8 +139,9 @@ export const getUsernameSlugLink = ({ users, slug }: UsernameSlugLinkProps): str }; export const getUsernameList = (users: string): string[] => { + // For Team booking, users might be undefined return users - .toLowerCase() + ?.toLowerCase() .replace(" ", "+") .replace("%20", "+") .split("+")