Fix team booking (#2417)

pull/2416/head^2
Hariom Balhara 2022-04-07 18:21:16 +05:30 committed by GitHub
parent 63635fc110
commit 173e7846e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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("+")