From 9537c129783f744672fa0a9c806b9975744a77fb Mon Sep 17 00:00:00 2001 From: britea Date: Sat, 2 May 2020 17:02:50 +0200 Subject: [PATCH] fix devices --- .../src/components/dashboard/devices/DeviceSettingsModal.js | 2 +- smart-hut/src/components/dashboard/devices/Thermostats.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/smart-hut/src/components/dashboard/devices/DeviceSettingsModal.js b/smart-hut/src/components/dashboard/devices/DeviceSettingsModal.js index fc7956b..a5dad4f 100644 --- a/smart-hut/src/components/dashboard/devices/DeviceSettingsModal.js +++ b/smart-hut/src/components/dashboard/devices/DeviceSettingsModal.js @@ -98,7 +98,7 @@ class DeviceSettingsModal extends Component { deleteDevice() { this.props .deleteDevice(this.props.device) - .then(() => this.setState({ open: false })) + .then(() => this.setState({ openModal: false })) .catch((err) => console.error( `settings modal for device ${this.props.id} deletion error`, diff --git a/smart-hut/src/components/dashboard/devices/Thermostats.js b/smart-hut/src/components/dashboard/devices/Thermostats.js index 815bd46..ab08fa1 100644 --- a/smart-hut/src/components/dashboard/devices/Thermostats.js +++ b/smart-hut/src/components/dashboard/devices/Thermostats.js @@ -153,7 +153,8 @@ class Thermostats extends Component {
{" "} {this.props.device.measuredTemperature} ºC
- {this.state.targetTemperature.toFixed(1)} ºC + {" "} + {this.props.device.targetTemperature.toFixed(1)} ºC
{this.props.tab === "Devices" ? (