diff --git a/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx b/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx index a9b72d220..479dcd648 100644 --- a/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx +++ b/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx @@ -42,7 +42,7 @@ export default function SelectHotelContent({ const isAboveMobile = useMediaQuery("(min-width: 768px)") const [visibleHotels, setVisibleHotels] = useState([]) - const [showSkeleton, setShowSkeleton] = useState(true) + const [showSkeleton, setShowSkeleton] = useState(isAboveMobile) const listingContainerRef = useRef(null) const activeFilters = useHotelFilterStore((state) => state.activeFilters) @@ -99,10 +99,12 @@ export default function SelectHotelContent({ () => debounce(() => { if (!map) return - setShowSkeleton(true) + if (isAboveMobile) { + setShowSkeleton(true) + } getHotelCards() }, 100), - [map, getHotelCards] + [map, getHotelCards, isAboveMobile] ) const closeButton = (