diff --git a/src/renderer/component/sideBar/view.jsx b/src/renderer/component/sideBar/view.jsx index d50d21491..becc2d3ed 100644 --- a/src/renderer/component/sideBar/view.jsx +++ b/src/renderer/component/sideBar/view.jsx @@ -25,10 +25,7 @@ type Props = { const SideBar = (props: Props) => { const { navLinks, notifications } = props; - const badges = Object.keys(notifications).reduce( - (acc, cur) => (notifications[cur].type === NOTIFICATION_TYPES.DOWNLOADING ? acc : acc + 1), - 0 - ); + const badges = Object.keys(notifications).length; return (