diff --git a/src/components/background-service.jsx b/src/components/background-service.jsx index 8061b97b..927a1748 100644 --- a/src/components/background-service.jsx +++ b/src/components/background-service.jsx @@ -32,9 +32,7 @@ export default memo(function BackgroundService({ isLoggedIn }) { lastReadId = markers?.notifications?.lastReadId; } catch (e) {} if (lastReadId) { - if (notifications[0].id !== lastReadId) { - states.notificationsShowNew = true; - } + states.notificationsShowNew = notifications[0].id !== lastReadId; } else { states.notificationsShowNew = true; }