Skip to content

Commit

Permalink
Merge pull request #5063 from HSLdevcom/DT-6403
Browse files Browse the repository at this point in the history
DT-6403 ticket disclaimer for scooters
  • Loading branch information
vesameskanen authored Sep 6, 2024
2 parents d103f10 + 8d41f80 commit df31b06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/component/itinerary/ItineraryDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ class ItineraryDetails extends React.Component {

const disclaimers = [];

if (shouldShowFareInfo(config) && fares.some(fare => fare.isUnknown)) {
const externalOperatorJourneys = legsWithScooter;

if (shouldShowFareInfo(config) && (fares.some(fare => fare.isUnknown) || externalOperatorJourneys) ) {
const found = {};
itinerary.legs.forEach(leg => {
if (config.modeDisclaimers?.[leg.mode] && !found[leg.mode]) {
Expand Down

0 comments on commit df31b06

Please sign in to comment.