diff --git a/components/Forms/BookingWidget/FormContent/Search/index.tsx b/components/Forms/BookingWidget/FormContent/Search/index.tsx index 972982337..cc9c7b275 100644 --- a/components/Forms/BookingWidget/FormContent/Search/index.tsx +++ b/components/Forms/BookingWidget/FormContent/Search/index.tsx @@ -162,7 +162,9 @@ export default function Search({ locations, handlePressEnter }: SearchProps) { }, [stayType, stayValue, unregister, setValue]) useEffect(() => { - sessionStorage.setItem(sessionStorageKey, locationString) + if (locationString) { + sessionStorage.setItem(sessionStorageKey, locationString) + } }, [locationString]) function getLocationLabel(): string {