diff --git a/components/Forms/BookingWidget/FormContent/Search/index.tsx b/components/Forms/BookingWidget/FormContent/Search/index.tsx index cc9c7b275..061646635 100644 --- a/components/Forms/BookingWidget/FormContent/Search/index.tsx +++ b/components/Forms/BookingWidget/FormContent/Search/index.tsx @@ -162,10 +162,10 @@ export default function Search({ locations, handlePressEnter }: SearchProps) { }, [stayType, stayValue, unregister, setValue]) useEffect(() => { - if (locationString) { - sessionStorage.setItem(sessionStorageKey, locationString) + if (location) { + sessionStorage.setItem(sessionStorageKey, JSON.stringify(location)) } - }, [locationString]) + }, [location]) function getLocationLabel(): string { if (location?.type === "hotels") {