We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2c53e0 commit 2721a0dCopy full SHA for 2721a0d
src/renderer/utils/notifications/filters/userType.ts
@@ -38,9 +38,9 @@ export function getUserTypeFilterCount(
38
userType: UserType,
39
) {
40
return notifications.reduce(
41
- (memo, acc) =>
42
- memo +
43
- acc.notifications.filter((n) => filterNotificationByUserType(n, userType))
+ (sum, account) =>
+ sum +
+ account.notifications.filter((n) => filterNotificationByUserType(n, userType))
44
.length,
45
0,
46
);
0 commit comments