Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

set compare bstateinit to true on toggle

Edward Plato28cd1e0dda61
diff --git a/web/js/modules/compare/reducers.js b/web/js/modules/compare/reducers.js
index ff5318283..1b59e6dff 100644
--- a/web/js/modules/compare/reducers.js
+++ b/web/js/modules/compare/reducers.js
@@ -24,7 +24,8 @@ export function compareReducer(state = initialCompareState, action) {
}
case TOGGLE_ON_OFF:
return lodashAssign({}, state, {
- active: !state.active
+ active: !state.active,
+ bStatesInitiated: true
});
case CHANGE_MODE:
return lodashAssign({}, state, {