Skip to content

Commit 2897408

Browse files
committed
refactor: notification count vars
Signed-off-by: Adam Setch <[email protected]>
1 parent d8172cf commit 2897408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/utils/notifications/notifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function setTrayIconColor(notifications: AccountNotifications[]) {
1515

1616
export function getNotificationCount(notifications: AccountNotifications[]) {
1717
return notifications.reduce(
18-
(memo, acc) => memo + acc.notifications.length,
18+
(sum, account) => sum + account.notifications.length,
1919
0,
2020
);
2121
}

0 commit comments

Comments
 (0)