diff --git a/components/settings.js b/components/settings.js index dca3484021cc482f12a5bd18f4bf1dda7752f34c..f92ff333d9d9266d7a4cd8422dece6fb7e767e64 100644 --- a/components/settings.js +++ b/components/settings.js @@ -63,8 +63,8 @@ class TempSlider extends Component { constructor(props) { super(props) this.state = { - min: config.temperatureScale.low, - max: config.temperatureScale.high + min: config.temperatureScale.defaultLow, + max: config.temperatureScale.defaultHigh } this.getStoredScale() } diff --git a/config.js b/config.js index 13b5f4935c51227112c178ab96ed5782a4bea2dd..d44ba54ce32195ce7f2dedc0e3a76c9c1e485422 100644 --- a/config.js +++ b/config.js @@ -2,8 +2,8 @@ const config = { chartHeight: 350, columnWidth: 25, temperatureScale: { - low: 35, - high: 38, + defaultLow: 35, + defaultHigh: 38, min: 34, max: 40, units: 0.1