Skip to content

Commit

Permalink
address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-heppner-ibigroup committed Apr 10, 2024
1 parent aac1f53 commit cdf21d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/viewers/nearby/nearby-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const getNearbyItem = (place: any) => {
}
}

function getNearbyCoords(
function getNearbyCoordsFromUrlOrMapCenter(
coordsFromUrl?: LatLonObj,
map?: MapRef
): LatLonObj | null {
Expand Down Expand Up @@ -104,7 +104,7 @@ function NearbyView({
const [loading, setLoading] = useState(true)
const firstItemRef = useRef<HTMLDivElement>(null)
const finalNearbyCoords = useMemo(
() => getNearbyCoords(nearbyViewCoords, map),
() => getNearbyCoordsFromUrlOrMapCenter(nearbyViewCoords, map),
[nearbyViewCoords, map]
)

Expand Down

0 comments on commit cdf21d2

Please sign in to comment.