Skip to content

Commit

Permalink
DT-6403 ticket disclaimer for scooters
Browse files Browse the repository at this point in the history
  • Loading branch information
sharhio committed Sep 5, 2024
1 parent eae4b44 commit 8d41f80
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 8d41f80

Please sign in to comment.