Skip to content

Commit

Permalink
Merge pull request #1016 from opentripplanner/call-taker-cleanup
Browse files Browse the repository at this point in the history
CallTaker: Cleanup Submode Settings
  • Loading branch information
miles-grant-ibigroup authored Oct 3, 2023
2 parents 1420eaa + 6dfa513 commit 4527f7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/components/form/call-taker/advanced-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export const StyledSubmodeSelector = styled(SubmodeSelector)`
${TripFormClasses.SubmodeSelector} {
${modeButtonButtonCss}
}
margin: 5px 0;
`

const metersToMiles = (meters) => Math.round(meters * 0.000621371 * 100) / 100
Expand Down Expand Up @@ -207,7 +209,7 @@ class AdvancedOptions extends Component {

const Select = lazy(() => import('react-select'))

const { bikeTolerance, modes: currentModes, walkReluctance } = currentQuery
const { modes: currentModes } = currentQuery
const bannedRoutes = this.getRouteList('banned')
const preferredRoutes = this.getRouteList('preferred')
const transitModes = modes.transitModes.map((modeObj) => {
Expand All @@ -223,7 +225,7 @@ class AdvancedOptions extends Component {
<div>
<div
style={{
alignItems: 'center',
alignItems: 'baseline',
display: 'flex',
justifyContent: 'space-between'
}}
Expand Down

0 comments on commit 4527f7e

Please sign in to comment.