Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit 32ec778

Browse files
committed
Refactor
1 parent 609567d commit 32ec778

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/view/components/cpx/Cpx.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Simulator from "./CpxSimulator";
1111
// Component grouping the functionality for circuit playground express
1212
const DEFAULT_STATE = {
1313
sensors: {
14-
[SENSOR_LIST.TEMPERATURE]: 0.0,
14+
[SENSOR_LIST.TEMPERATURE]: 0,
1515
[SENSOR_LIST.LIGHT]: 0,
1616
[SENSOR_LIST.MOTION_X]: 0,
1717
[SENSOR_LIST.MOTION_Y]: 0,

src/view/components/toolbar/InputSlider.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,13 @@ class InputSlider extends React.Component<ISliderProps, any, any> {
104104

105105
private validateRange = (valueString: string) => {
106106
let valueInt = parseFloat(valueString);
107-
console.log(`original value ${valueString}`);
108107
if (valueInt < this.props.minValue) {
109108
valueInt = this.props.minValue;
110109
this.setState({ value: valueInt });
111110
} else if (valueInt > this.props.maxValue) {
112111
valueInt = this.props.maxValue;
113112
this.setState({ value: valueInt });
114113
}
115-
console.log(`updated value ${valueInt}`);
116-
117114
return valueInt;
118115
};
119116
}

0 commit comments

Comments
 (0)