File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/renderer/utils/notifications/filters Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ export function getReasonFilterCount(
1414 reason : Reason ,
1515) {
1616 return notifications . reduce (
17- ( memo , acc ) =>
18- memo + acc . notifications . filter ( ( n ) => n . reason === reason ) . length ,
17+ ( sum , account ) =>
18+ sum + account . notifications . filter ( ( n ) => n . reason === reason ) . length ,
1919 0 ,
2020 ) ;
2121}
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ export function getUserTypeFilterCount(
3838 userType : UserType ,
3939) {
4040 return notifications . reduce (
41- ( memo , acc ) =>
42- memo +
43- acc . notifications . filter ( ( n ) => filterNotificationByUserType ( n , userType ) )
41+ ( sum , account ) =>
42+ sum +
43+ account . notifications . filter ( ( n ) => filterNotificationByUserType ( n , userType ) )
4444 . length ,
4545 0 ,
4646 ) ;
You can’t perform that action at this time.
0 commit comments