diff --git a/lib/components/map/base-map.js b/lib/components/map/base-map.js index d935186cc..9d83d0c39 100644 --- a/lib/components/map/base-map.js +++ b/lib/components/map/base-map.js @@ -66,7 +66,7 @@ class BaseMap extends Component { setMapPopupLocation({ location: null }) setLocation({ type, location, reverseGeocode: true }) if (typeof this.props.onSetLocation === 'function') { - this.props.onSetLocation({type, location}) + this.props.onSetLocation({ type, location }) } } diff --git a/lib/components/map/set-from-to.js b/lib/components/map/set-from-to.js index b5aec9408..80d383bb6 100644 --- a/lib/components/map/set-from-to.js +++ b/lib/components/map/set-from-to.js @@ -2,7 +2,6 @@ import React, { Component } from 'react' import FromToLocationPicker from '@opentripplanner/from-to-location-picker' - export default class SetFromToButtons extends Component { _setLocation = (type) => { this.props.setLocation({