From 6712f5e811f0e7866c4a39a2688aa45c2a358275 Mon Sep 17 00:00:00 2001 From: josh-willis-arcadis <168561922+josh-willis-arcadis@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:15:06 -0500 Subject: [PATCH] fix(connected-itinerary-body): address pr feedback --- .../narrative/line-itin/connected-itinerary-body.js | 12 +++++++++--- yarn.lock | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/components/narrative/line-itin/connected-itinerary-body.js b/lib/components/narrative/line-itin/connected-itinerary-body.js index e596ab9e6..81e8f0309 100644 --- a/lib/components/narrative/line-itin/connected-itinerary-body.js +++ b/lib/components/narrative/line-itin/connected-itinerary-body.js @@ -84,6 +84,8 @@ class ConnectedItineraryBody extends Component { const showViewTripButton = !config?.itinerary?.hideViewTripButton const allowUserAlertCollapsing = config?.itinerary?.allowUserAlertCollapsing + const showApproximatePrefixNonTransitLegs = + config.itinerary && config.itinerary.showApproximatePrefixNonTransitLegs // Support OTP1 flex messages in Trip Details // Adding empty pickupBookingInfo and dropOffBookingInfo objects @@ -135,8 +137,7 @@ class ConnectedItineraryBody extends Component { }} showAgencyInfo showApproximatePrefixNonTransitLegs={ - config.itinerary && - config.itinerary.showApproximatePrefixNonTransitLegs + showApproximatePrefixNonTransitLegs } showElevationProfile={config.elevationProfile} showLegIcon @@ -148,7 +149,12 @@ class ConnectedItineraryBody extends Component { TransitLegSubheader={TransitLegSubheader} TransitLegSummary={TransitLegSummary} /> - + ) diff --git a/yarn.lock b/yarn.lock index 78e072aa4..f950b13b7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2434,7 +2434,7 @@ "@opentripplanner/location-icon" "^1.4.1" flat "^5.0.2" -"@opentripplanner/geocoder@^2.0.1", "@opentripplanner/geocoder@^2.2.2": +"@opentripplanner/geocoder@^2.2.2": version "2.2.2" resolved "https://registry.yarnpkg.com/@opentripplanner/geocoder/-/geocoder-2.2.2.tgz#8ddc669287ccdfff1a5cce14d1fa8049421c6480" integrity sha512-tJIOOE5N9kpMj0ji1YyVfWwg4yAFVs7Ks+EET67acql768bXwRE6rHoX6oaHvKhbCDjaQ7kuPIwi1BYWHQgg0Q==