File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,11 @@ class ItineraryPage extends React.Component {
313
313
] ) ,
314
314
} ;
315
315
316
+ const parkRidePlan = {
317
+ ...result . parkRidePlan ,
318
+ itineraries : transitItineraries ( result . parkRidePlan . itineraries ) ,
319
+ } ;
320
+
316
321
this . setState (
317
322
{
318
323
loadingAlt : false ,
@@ -324,7 +329,7 @@ class ItineraryPage extends React.Component {
324
329
scooterRentAndPublicPlan : result . scooterRentAndPublicPlan ,
325
330
carPlan : result . carPlan ,
326
331
carRentalPlan : result . carRentalPlan ,
327
- parkRidePlan : result . parkRidePlan ,
332
+ parkRidePlan,
328
333
onDemandTaxiPlan : result . onDemandTaxiPlan ,
329
334
} ,
330
335
( ) => {
Original file line number Diff line number Diff line change @@ -51,9 +51,10 @@ export const StreetModeSelector = ({
51
51
...( bikeParkPlan ?. itineraries || [ ] ) ,
52
52
...( bikeAndPublicPlan ?. itineraries || [ ] ) ,
53
53
...( bikeRentAndPublicPlan ?. itineraries || [ ] ) ,
54
- ] ,
54
+ ] . filter ( itinerary => itinerary . legs . some ( l => l . transitLeg ) ) ,
55
55
}
56
56
: { } ;
57
+
57
58
const carRentalOrOwn = ! loading
58
59
? {
59
60
itineraries : [
You can’t perform that action at this time.
0 commit comments