fix(SW-1168) Fixed typing

This commit is contained in:
Pontus Dreij
2024-12-12 10:47:13 +01:00
parent c3e56d5b49
commit e05372f4d8
2 changed files with 5 additions and 4 deletions
@@ -10,7 +10,7 @@ export function getVisibleHotelPins(
const bounds = map.getBounds()
if (!bounds) return []
return filteredHotelPins.filter((pin: any) => {
return filteredHotelPins.filter((pin) => {
const { lat, lng } = pin.coordinates
return bounds.contains({ lat, lng })
})
@@ -22,8 +22,8 @@ export function getVisibleHotels(
map: google.maps.Map | null
) {
const visibleHotelPins = getVisibleHotelPins(map, filteredHotelPins)
const visibleHotels = hotels.filter((hotel: any) =>
visibleHotelPins.some((pin: any) => pin.operaId === hotel.hotelData.operaId)
const visibleHotels = hotels.filter((hotel) =>
visibleHotelPins.some((pin) => pin.operaId === hotel.hotelData.operaId)
)
return visibleHotels
}