Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
chunlaw authored and actions-user committed Sep 13, 2024
1 parent fece3fa commit e835c6a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/home/lists/NearbyRouteList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,14 @@ const getRoutes = ({
).forEach((co) => {
if (route.stops[co] && route.stops[co].includes(stopId)) {
if (acc[coToType[co]] === undefined) acc[coToType[co]] = [];
if(addedList.find(([_route, _co, _serviceType]) => _route == route.route && _co == co && _serviceType < route.serviceType) === undefined) {
if (
addedList.find(
([_route, _co, _serviceType]) =>
_route == route.route &&
_co == co &&
_serviceType < route.serviceType
) === undefined
) {
acc[coToType[co]].push(
key + "/" + route.stops[co].indexOf(stopId)
);
Expand Down

0 comments on commit e835c6a

Please sign in to comment.