Skip to content

Commit 39775aa

Browse files
committed
Merge branch 'feat/filter-by-handle' of https://github.com/gitify-app/gitify into feat/filter-by-handle
2 parents 74b708f + 0f25bd5 commit 39775aa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

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)