Interactive interface for browsing global, full-resolution satellite imagery
fix `no-mixed-operators` errors
Jason Kent9bf96cba39e9
diff --git a/web/js/components/timeline/timeline-axis/timeline-axis.js b/web/js/components/timeline/timeline-axis/timeline-axis.jsindex f6bd4a0c1..c9a75190e 100644--- a/web/js/components/timeline/timeline-axis/timeline-axis.js+++ b/web/js/components/timeline/timeline-axis/timeline-axis.js@@ -94,7 +94,7 @@ class TimelineAxis extends Component {// this is the middle on the axis based on number of tiles determined from width of axis and gridwidth// this is used to determine position and also to "reset" position after an axis drag has stopped- const midPoint = numberOfVisibleTiles / 2 * gridWidth - gridWidth * gridNumber / 2;+ const midPoint = numberOfVisibleTiles / (2 * gridWidth) - (gridWidth * gridNumber) / 2;// horizontal scroll will disable this, so use frontDate in that caselet hoverTimeString = hoverTime || this.props.draggerTimeState;diff --git a/web/js/map/measure/util.js b/web/js/map/measure/util.jsindex df35b091c..357b2b340 100644--- a/web/js/map/measure/util.js+++ b/web/js/map/measure/util.js@@ -142,5 +142,5 @@ export function getGeographicLibDistance(line) {*/export function roundAndLocale(measurement, factor) {factor = factor || 1;- return (Math.round(measurement / factor * 100) / 100).toLocaleString();+ return (Math.round(measurement / (factor * 100)) / 100).toLocaleString();}