i am dumb

This commit is contained in:
Jacob Salvi 2020-04-25 15:44:02 +02:00
parent b56b9a8260
commit a4c13a2691

View File

@ -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);
}
};