diff --git a/components/BookingWidget/MobileToggleButton/index.tsx b/components/BookingWidget/MobileToggleButton/index.tsx index 53ef9650d..9159ef400 100644 --- a/components/BookingWidget/MobileToggleButton/index.tsx +++ b/components/BookingWidget/MobileToggleButton/index.tsx @@ -50,15 +50,12 @@ export default function MobileToggleButton({ setHasMounted(true) }, []) - const locationAndDateIsSet = useMemo( - () => parsedLocation && d, - [parsedLocation, d] - ) - if (!hasMounted) { return null } + const locationAndDateIsSet = parsedLocation && d + const totalRooms = rooms.length const totalAdults = rooms.reduce((acc, room) => { if (room.adults) {