Skip to content

Commit

Permalink
fix: added mode check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dvun committed Nov 7, 2023
1 parent ed2ca98 commit 3cb02df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/component/TransitLeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ class TransitLeg extends React.Component {
{leg.fare &&
leg.fare.isUnknown &&
shouldShowFareInfo(config) &&
(config.showTrainLimitationInfo ? (
(mode === 'RAIL' && config.showTrainLimitationInfo ? (
<div className="disclaimer-container unknown-fare-disclaimer__leg">
<div className="description-container">
<FormattedMessage
Expand Down

0 comments on commit 3cb02df

Please sign in to comment.