Skip to content

Commit 2721a0d

Browse files
setchyafonsojramos
andauthored
Update src/renderer/utils/notifications/filters/userType.ts
Co-authored-by: Afonso Jorge Ramos <[email protected]>
1 parent f2c53e0 commit 2721a0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/renderer/utils/notifications/filters/userType.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)