diff --git a/README.md b/README.md
index 5aac65c..89ce48d 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1 @@
# frontend
-
diff --git a/smart-hut/src/App.test.js b/smart-hut/src/App.test.js
index 18413f8..135fe7a 100644
--- a/smart-hut/src/App.test.js
+++ b/smart-hut/src/App.test.js
@@ -3,12 +3,16 @@ import { render } from "@testing-library/react";
import { Router } from "react-router";
import { createMemoryHistory } from "history";
import App from "./App";
+import { Provider } from "react-redux";
+import smartHutStore from "./store";
test("redirects to homepage", () => {
const history = createMemoryHistory();
render(
-
+
+
+
);
expect(history.location.pathname).toBe("/");
diff --git a/smart-hut/src/components/dashboard/DevicePanel.js b/smart-hut/src/components/dashboard/DevicePanel.js
index 28a9906..5e0fb17 100644
--- a/smart-hut/src/components/dashboard/DevicePanel.js
+++ b/smart-hut/src/components/dashboard/DevicePanel.js
@@ -48,7 +48,9 @@ const mapStateToProps = (state, _) => ({
if (state.active.activeRoom === -1) {
return Object.values(state.devices);
} else {
- const deviceArray = [...state.rooms[state.active.activeRoom].devices].sort();
+ const deviceArray = [
+ ...state.rooms[state.active.activeRoom].devices,
+ ].sort();
return deviceArray.map((id) => state.devices[id]);
}
},
diff --git a/smart-hut/src/components/dashboard/devices/Device.js b/smart-hut/src/components/dashboard/devices/Device.js
index ef202ac..6ad0ac4 100644
--- a/smart-hut/src/components/dashboard/devices/Device.js
+++ b/smart-hut/src/components/dashboard/devices/Device.js
@@ -56,19 +56,21 @@ class Device extends React.Component {
return (
-
- {this.renderDeviceComponent()}
-
-
-
-