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 }) .saveDevice({ ...this.props.device, intensity })
.catch((err) => console.error("curtain update error", err)); .catch((err) => console.error("curtain update error", err));
}else{ }else{
this.props.updateState({ ...this.props.device, on },this.props.type); this.props.updateState({ ...this.props.device, intensity },this.props.type);
} }
}; };