mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-20 21:58:09 +00:00
[Glitch] Enable ESLlint no-case-declarations
Port f91f077985 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -369,9 +369,10 @@ export default function notifications(state = initialState, action) {
|
||||
}
|
||||
return markAllForDelete(st, action.yes);
|
||||
|
||||
case NOTIFICATIONS_MARK_AS_READ:
|
||||
case NOTIFICATIONS_MARK_AS_READ: {
|
||||
const lastNotification = state.get('items').find(item => item !== null);
|
||||
return lastNotification ? recountUnread(state, lastNotification.get('id')) : state;
|
||||
}
|
||||
|
||||
default:
|
||||
return state;
|
||||
|
||||
Reference in New Issue
Block a user