diff --git a/frontend/src/Components/Charts/TrafficStops/TrafficStops.js b/frontend/src/Components/Charts/TrafficStops/TrafficStops.js index a7af2b0f..5af3ef36 100644 --- a/frontend/src/Components/Charts/TrafficStops/TrafficStops.js +++ b/frontend/src/Components/Charts/TrafficStops/TrafficStops.js @@ -47,6 +47,7 @@ import range from 'lodash.range'; import LineChart from '../../NewCharts/LineChart'; import axios from '../../../Services/Axios'; import NewModal from '../../NewCharts/NewModal'; +import displayDefinition from '../../../util/displayDefinition'; function TrafficStops(props) { const { agencyId } = props; @@ -493,6 +494,11 @@ function TrafficStops(props) { onChange={handleStopPurposeSelect} options={[PURPOSE_DEFAULT].concat(stopTypes)} /> + + {purpose !== PURPOSE_DEFAULT && ( +

{displayDefinition(purpose)}

+ )} +