Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix issue with trying to set a property to NaN

Jason Kenta62e537b1a9a
diff --git a/web/js/components/sidebar/paletteLegend.js b/web/js/components/sidebar/paletteLegend.js
index b43ab351c..184b5a531 100644
--- a/web/js/components/sidebar/paletteLegend.js
+++ b/web/js/components/sidebar/paletteLegend.js
@@ -274,7 +274,7 @@ class PaletteLegend extends React.Component {
className="wv-running-bar"
style={{
top: 7,
- left: isHoveringLegend ? 0 : xOffset + 0.5,
+ left: isHoveringLegend ? 0 : xOffset > 0 ? xOffset + 0.5 : 0,
visibility: legendObj && !isHoveringLegend ? 'visible' : 'hidden'
}}
/>