Skip to content

Commit

Permalink
clean up nearby filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-corson-ibigroup committed Dec 19, 2024
1 parent c076733 commit 5729b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/viewers/nearby/nearby-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function NearbyView({
const filteredNearby = nearby?.filter((n: any) => {
if (n.place.__typename === 'Stop' && nearbyViewConfig?.hideEmptyStops) {
const patternArray = patternArrayforStops(n.place, routeSortComparator)
if (patternArray?.length === 0) return false
return !(patternArray?.length === 0)
}
return true
})
Expand Down

0 comments on commit 5729b21

Please sign in to comment.