We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 420a57f commit 993b3ceCopy full SHA for 993b3ce
src/components/Gauge.react.js
@@ -39,7 +39,7 @@ class Gauge extends React.Component {
39
40
const colorValue = getColorValue(color);
41
42
- const rawValue = this.props.value || min;
+ const rawValue = this.props.value != null ? this.props.value : min;
43
const dirtyValue = logarithmic ? log.compute(rawValue) : rawValue;
44
const value = sanitizeRangeValue({ min, max, value: dirtyValue });
45
src/components/Knob.react.js
@@ -28,7 +28,7 @@ class Knob extends Component {
28
const currentDeg = valueToDeg({
29
min: props.min,
30
max: props.max,
31
- value: props.value || props.min
+ value: props.value != null ? props.value : props.min
32
});
33
34
this.state = {
0 commit comments