Interactive interface for browsing global, full-resolution satellite imagery
end tour to set isActive as false and close dialog
Edward Plato646909104df6
diff --git a/web/js/containers/tour.js b/web/js/containers/tour.jsindex 78166f449..732909d2a 100644--- a/web/js/containers/tour.js+++ b/web/js/containers/tour.js@@ -59,8 +59,13 @@ class Tour extends React.Component {toggleModalStart(e) {e.preventDefault();+ const toggleModal = !this.state.modalStart;+ // if closing modal+ if (!toggleModal) {+ this.props.endTour();+ }this.setState({- modalStart: !this.state.modalStart+ modalStart: toggleModal});}