fix: prefillFormParams guest type (#13798)

This commit is contained in:
Morgan authored and GitHub committed 2024-02-21 12:36:48 +00:00
1 parent 83ceb46cca
commit fa9a099dd6
1 file changed
+1 -1
@@ -69,7 +69,7 @@ export const BookerWebWrapper = (props: BookerWebWrapperAtomProps) => {
name:
searchParams?.get("name") ||
(firstNameQueryParam ? `${firstNameQueryParam} ${lastNameQueryParam}` : null),
guests: searchParams?.getAll("guests") || searchParams?.getAll("guest"),
guests: (searchParams?.getAll("guests") || searchParams?.getAll("guest")) ?? [],
};
}, [searchParams, firstNameQueryParam, lastNameQueryParam]);