We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2776ebb commit 6bee3f3Copy full SHA for 6bee3f3
src/components/AlertSlider.jsx
@@ -28,7 +28,7 @@ class AlertSlider extends React.Component {
28
}
29
if (this.props.value.max > range.max) range.max = this.props.value.max
30
if (this.props.value.min < range.min) range.min = this.props.value.min
31
- if (this.props.type === "pressure") {
+ if (this.props.type === "pressure" || this.props.type === "temperature") {
32
var uh = getUnitHelper(this.props.type)
33
range.max = uh.value(range.max)
34
range.min = uh.value(range.min)
0 commit comments