Skip to content

Commit

Permalink
fix: fixed mystic string to constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Dvun committed Nov 8, 2023
1 parent 22ed412 commit 08845a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/component/TransitLeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import {
getHeadsignFromRouteLongName,
getStopHeadsignFromStoptimes,
getZoneLabel,
LegMode,
} from '../util/legUtils';
import { shouldShowFareInfo } from '../util/fareUtils';
import { AlertEntityType, AlertSeverityLevelType } from '../constants';
Expand Down Expand Up @@ -550,7 +551,7 @@ class TransitLeg extends React.Component {
{leg.fare &&
leg.fare.isUnknown &&
shouldShowFareInfo(config) &&
(mode === 'RAIL' && config.showTrainLimitationInfo ? (
(mode === LegMode.Rail && config.showTrainLimitationInfo ? (
<div className="disclaimer-container unknown-fare-disclaimer__leg">
<div className="description-container">
<FormattedMessage
Expand Down
1 change: 0 additions & 1 deletion app/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,6 @@ const translations = {
'number-of-minutes':
'{number, plural, =0 {0 minutes} one {1 minute} other {{number} minutes}}',
'number-of-spaces': 'Number of spaces:',

'off-canvas-info':
'Log in to the service to save your favorites and utilize them on other devices',
'one-way-journey': 'The length of a one-way journey',
Expand Down

0 comments on commit 08845a0

Please sign in to comment.