From 08845a061aec978d4e88268f2366c12b44dfe881 Mon Sep 17 00:00:00 2001 From: Dvun Date: Wed, 8 Nov 2023 11:12:43 +0200 Subject: [PATCH] fix: fixed mystic string to constants --- app/component/TransitLeg.js | 3 ++- app/translations.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/component/TransitLeg.js b/app/component/TransitLeg.js index eedcf2708f..0ec3eadf9a 100644 --- a/app/component/TransitLeg.js +++ b/app/component/TransitLeg.js @@ -32,6 +32,7 @@ import { getHeadsignFromRouteLongName, getStopHeadsignFromStoptimes, getZoneLabel, + LegMode, } from '../util/legUtils'; import { shouldShowFareInfo } from '../util/fareUtils'; import { AlertEntityType, AlertSeverityLevelType } from '../constants'; @@ -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 ? (