diff --git a/smart-hut/src/components/dashboard/devices/Curtain.js b/smart-hut/src/components/dashboard/devices/Curtain.js index 0348e5c..20aeb56 100644 --- a/smart-hut/src/components/dashboard/devices/Curtain.js +++ b/smart-hut/src/components/dashboard/devices/Curtain.js @@ -58,7 +58,7 @@ class Curtain extends Component { .saveDevice({ ...this.props.device, intensity }) .catch((err) => console.error("curtain update error", err)); }else{ - this.props.updateState({ ...this.props.device, on },this.props.type); + this.props.updateState({ ...this.props.device, intensity },this.props.type); } };