Skip to content

Commit

Permalink
(Re-)introduce variable for magic constant
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch committed Dec 4, 2024
1 parent 18247f2 commit f092457
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/component/RoutePageControlPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ class RoutePageControlPanel extends React.Component {
const useCurrentTime = activeTab === Tab.Stops;

const countOfButtons = 3;
const isOnDemandTaxi = route.type === 715;

let disruptionIcon;
if (disruptionClassName === 'active-disruption-alert') {
Expand Down Expand Up @@ -439,7 +440,7 @@ class RoutePageControlPanel extends React.Component {
<FormattedMessage id="route-guide" defaultMessage="Route guide" />
</h1>
</div>
{route.type === 715 && <CallAgencyWarning route={route} />}
{isOnDemandTaxi && <CallAgencyWarning route={route} />}
<div
className={cx('route-control-panel', {
'bp-large': breakpoint === 'large',
Expand Down

0 comments on commit f092457

Please sign in to comment.