Skip to content

Commit 6ad523d

Browse files
3051 warning removed
1 parent 5d9c1b2 commit 6ad523d

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/components/NotificationsDropdown/NotificationsDropdownContainer.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ class NotificationsDropdownContainer extends React.Component {
261261
constructor(props) {
262262
super(props)
263263
this.state = {
264-
lastVisited: new Date(0),
265264
isDropdownWebOpen: false,
266265
isDropdownMobileOpen: false,
267266
notificationsVisited: false,

src/routes/notifications/reducers/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const initialState = {
2727
notifications: [],
2828
// ids of sources that will also show old notifications
2929
oldSourceIds: [],
30-
lastVisited: new Date(0),
3130
pending: false,
3231
readers: {},
3332
}
@@ -74,9 +73,6 @@ export default (state = initialState, action) => {
7473
case GET_NOTIFICATIONS_FAILURE:
7574
return { ...state, isLoading: false }
7675

77-
case VISIT_NOTIFICATIONS:
78-
return {...state, lastVisited: _.maxBy(_.map(state.notifications, n => new Date(n.date)))}
79-
8076
case TOGGLE_NOTIFICATION_SEEN: {
8177
const ids = action.payload.split('-')
8278
const newState = {

0 commit comments

Comments
 (0)