Fix team booking (#2417)
This commit is contained in:
parent
63635fc110
commit
173e7846e8
1 changed files with 2 additions and 1 deletions
|
@ -139,8 +139,9 @@ export const getUsernameSlugLink = ({ users, slug }: UsernameSlugLinkProps): str
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getUsernameList = (users: string): string[] => {
|
export const getUsernameList = (users: string): string[] => {
|
||||||
|
// For Team booking, users might be undefined
|
||||||
return users
|
return users
|
||||||
.toLowerCase()
|
?.toLowerCase()
|
||||||
.replace(" ", "+")
|
.replace(" ", "+")
|
||||||
.replace("%20", "+")
|
.replace("%20", "+")
|
||||||
.split("+")
|
.split("+")
|
||||||
|
|
Loading…
Reference in a new issue