Skip to content

Commit 6bee3f3

Browse files
author
io53
committed
fix: issue with tempreature slider when not using celcius
1 parent 2776ebb commit 6bee3f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/AlertSlider.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AlertSlider extends React.Component {
2828
}
2929
if (this.props.value.max > range.max) range.max = this.props.value.max
3030
if (this.props.value.min < range.min) range.min = this.props.value.min
31-
if (this.props.type === "pressure") {
31+
if (this.props.type === "pressure" || this.props.type === "temperature") {
3232
var uh = getUnitHelper(this.props.type)
3333
range.max = uh.value(range.max)
3434
range.min = uh.value(range.min)

0 commit comments

Comments
 (0)