aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
Diffstat (limited to 'modern')
-rw-r--r--modern/src/SocketController.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/SocketController.js b/modern/src/SocketController.js
index 50f43931..3e6e6783 100644
--- a/modern/src/SocketController.js
+++ b/modern/src/SocketController.js
@@ -6,7 +6,6 @@ import { useNavigate } from 'react-router-dom';
import { positionsActions, devicesActions, sessionActions } from './store';
import { useEffectAsync } from './reactHelper';
import { useTranslation } from './common/components/LocalizationProvider';
-import { prefixString } from './common/util/stringUtils';
import { snackBarDurationLongMs } from './common/util/duration';
import usePersistedState from './common/util/usePersistedState';
@@ -103,7 +102,7 @@ const SocketController = () => {
useEffect(() => {
setNotifications(events.map((event) => ({
id: event.id,
- message: `${devices[event.deviceId]?.name}: ${t(prefixString('event', event.type))}`,
+ message: event.attributes.message,
show: true,
})));
}, [events, devices, t]);