diff options
Diffstat (limited to 'modern/src/SocketController.js')
-rw-r--r-- | modern/src/SocketController.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/SocketController.js b/modern/src/SocketController.js index 79661353..bfc0378d 100644 --- a/modern/src/SocketController.js +++ b/modern/src/SocketController.js @@ -10,6 +10,7 @@ import { snackBarDurationLongMs } from './common/util/duration'; import usePersistedState from './common/util/usePersistedState'; import alarm from './resources/alarm.mp3'; +import { eventsActions } from './store/events'; const SocketController = () => { const dispatch = useDispatch(); @@ -60,6 +61,7 @@ const SocketController = () => { dispatch(positionsActions.update(data.positions)); } if (data.events) { + dispatch(eventsActions.add(data.events)); setEvents(data.events); } }; |