@@ -6,8 +6,8 @@ import { configShape, relayShape } from '../../util/shapes';
66import StopNearYouContainer from './StopNearYouContainer' ;
77import withBreakpoint from '../../util/withBreakpoint' ;
88import {
9- sortNearbyRentalStations ,
10- sortNearbyStops ,
9+ sortNearYouRentalStations ,
10+ sortNearYouStops ,
1111} from '../../util/sortUtils' ;
1212import VehicleRentalStationNearYou from './VehicleRentalStationNearYou' ;
1313import Loading from '../Loading' ;
@@ -76,7 +76,7 @@ function NearYouContainer(
7676 const fetchMore =
7777 edges . filter (
7878 stop => ! ( stop . node . place . stoptimesWithoutPatterns ?. length === 0 ) ,
79- ) . length < 5 && refetches . current < config . maxNearbyStopRefetches ;
79+ ) . length < 5 && refetches . current < config . maxNearYouStopRefetches ;
8080 if ( fetchMore ) {
8181 showMore ( true ) ;
8282 }
@@ -95,7 +95,7 @@ function NearYouContainer(
9595 loadingDone ( ) ;
9696 } , [ ] ) ;
9797
98- const createNearbyStops = ( ) => {
98+ const createNearYouStops = ( ) => {
9999 if ( ! places ?. nearest ) {
100100 return [ ] ;
101101 }
@@ -114,12 +114,12 @@ function NearYouContainer(
114114 } ) ;
115115 sorted = filteredCityBikeStopEdges
116116 . slice ( 0 , 5 )
117- . sort ( sortNearbyRentalStations ( favouriteIds ) ) ;
117+ . sort ( sortNearYouRentalStations ( favouriteIds ) ) ;
118118 sorted . push ( ...filteredCityBikeStopEdges . slice ( 5 ) ) ;
119119 } else {
120120 sorted = edges
121121 . slice ( 0 , 5 )
122- . sort ( sortNearbyStops ( favouriteIds , walkRoutingThreshold ) ) ;
122+ . sort ( sortNearYouStops ( favouriteIds , walkRoutingThreshold ) ) ;
123123 sorted . push ( ...edges . slice ( 5 ) ) ;
124124 }
125125
@@ -158,13 +158,13 @@ function NearYouContainer(
158158 return stops ;
159159 } ;
160160
161- const stops = createNearbyStops ( ) ;
161+ const stops = createNearYouStops ( ) ;
162162 const alerts = stops
163163 . flatMap ( stop => stop ?. props ?. stop ?. routes || [ ] )
164164 . flatMap ( route => route ?. alerts || [ ] )
165165 . filter ( alert => alert . alertSeverityLevel === 'SEVERE' ) ;
166166 const noStopsFound =
167- ! stops . length && refetches >= config . maxNearbyStopRefetches && ! loading ;
167+ ! stops . length && refetches >= config . maxNearYouStopRefetches && ! loading ;
168168 return (
169169 < >
170170 { renderDisruptionBanner && (
0 commit comments