Skip to content

Commit

Permalink
console: Fix small screen notifications status bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaplots committed Feb 5, 2024
1 parent 03075a1 commit cbc8667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webui/console/containers/notifications/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const Notifications = React.memo(() => {
const clickedNotification = items.find(notification => notification.id === notificationId)
const index = items.findIndex(notification => notification.id === notificationId)
const timer = setTimeout(() => {
if (category === 'inbox' && !('status' in clickedNotification) && totalUnseenCount > 0) {
if (category === 'inbox' && !clickedNotification?.status && totalUnseenCount > 0) {
dispatch(
attachPromise(
updateNotificationStatus([clickedNotification.id], 'NOTIFICATION_STATUS_SEEN'),
Expand Down

0 comments on commit cbc8667

Please sign in to comment.