Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Clear comparison mode data between two comparison mode links

ZachTRicef533735b3dc1
diff --git a/web/js/components/tour/modal-tour-in-progress.js b/web/js/components/tour/modal-tour-in-progress.js
index f2fb5c02b..bf03d7152 100644
--- a/web/js/components/tour/modal-tour-in-progress.js
+++ b/web/js/components/tour/modal-tour-in-progress.js
@@ -253,7 +253,7 @@ class ModalInProgress extends React.Component {
var rotation = 0;
// Close the comparison mode if there is no comparison mode in the step link
- if ((!currentState.ca || !currentState.cm) && models.compare.active === true) {
+ if (((!currentState.ca || !currentState.cm) && models.compare.active === true) || (prevState.ca || prevState.cm)) {
models.compare.toggle();
models.compare.load({});
ui.sidebar.reactComponent.setState({