Skip to content

Commit 0f25bd5

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

File tree

1 file changed

+2
-2
lines changed
  • src/renderer/utils/notifications/filters

1 file changed

+2
-2
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
}

0 commit comments

Comments
 (0)