aboutsummaryrefslogtreecommitdiff
path: root/modern/src/SocketController.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/SocketController.js')
-rw-r--r--modern/src/SocketController.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/SocketController.js b/modern/src/SocketController.js
index 6de3369a..13ff0a9d 100644
--- a/modern/src/SocketController.js
+++ b/modern/src/SocketController.js
@@ -20,7 +20,7 @@ const displayNotifications = events => {
}
};
-const SocketController = (props) => {
+const SocketController = () => {
const dispatch = useDispatch();
const connectSocket = () => {
@@ -34,10 +34,10 @@ const SocketController = (props) => {
socket.onmessage = (event) => {
const data = JSON.parse(event.data);
if (data.devices) {
- props.dispatch(devicesActions.update(data.devices));
+ dispatch(devicesActions.update(data.devices));
}
if (data.positions) {
- props.dispatch(positionsActions.update(data.positions));
+ dispatch(positionsActions.update(data.positions));
}
if (data.events) {
displayNotifications(data.events);