diff --git a/lib/components/narrative/line-itin/connected-itinerary-body.js b/lib/components/narrative/line-itin/connected-itinerary-body.js index 9ed6d239b..81cdb475a 100644 --- a/lib/components/narrative/line-itin/connected-itinerary-body.js +++ b/lib/components/narrative/line-itin/connected-itinerary-body.js @@ -78,6 +78,8 @@ class ConnectedItineraryBody extends Component { } = this.props const clonedItinerary = clone(itinerary) + const showViewTripButton = !config?.itinerary?.hideViewTripButton + // Support OTP1 flex messages in Trip Details // Adding empty pickupBookingInfo and dropOffBookingInfo objects // to a leg will trigger relevant flex pickup / dropoff descriptions in @@ -130,7 +132,7 @@ class ConnectedItineraryBody extends Component { showLegIcon showMapButtonColumn={false} showRouteFares={config.itinerary && config.itinerary.showRouteFares} - showViewTripButton + showViewTripButton={showViewTripButton} TimeColumnContent={RealtimeTimeColumn} toRouteAbbreviation={noop} TransitLegSubheader={TransitLegSubheader}