Merged in fix/SW-3117-filter-default-zero (pull request #2464)
fix(SW-3117): default filter count on mobile number of hotels * fix(SW-3117): default filter should be hotel count Approved-by: Tobias Johansson
This commit is contained in:
@@ -102,7 +102,7 @@ export default function HotelCardListing({
|
||||
}, [activeHotel, type])
|
||||
|
||||
useEffect(() => {
|
||||
setResultCount(hotels.length, unfilteredHotelCount)
|
||||
setResultCount(hotels.length, unfilteredHotelCount ?? hotels.length)
|
||||
}, [hotels, setResultCount, unfilteredHotelCount])
|
||||
|
||||
function isHotelActiveInMapView(hotelName: string): boolean {
|
||||
|
||||
Reference in New Issue
Block a user