deal with no-prototype-builtins

This commit is contained in:
Henry Jameson 2022-07-31 12:36:02 +03:00
commit fc18673030
6 changed files with 12 additions and 6 deletions

View file

@ -341,6 +341,7 @@ const addNewNotifications = (state, { dispatch, notifications, older, visibleNot
}
// Only add a new notification if we don't have one for the same action
// eslint-disable-next-line no-prototype-builtins
if (!state.notifications.idStore.hasOwnProperty(notification.id)) {
updateNotificationsMinMaxId(state, notification)