diff --git a/src/components/Tasks/Sidebar.tsx b/src/components/Tasks/Sidebar.tsx
index e9b9bab..60c117c 100644
--- a/src/components/Tasks/Sidebar.tsx
+++ b/src/components/Tasks/Sidebar.tsx
@@ -16,7 +16,7 @@ interface ListItemPropsType {
name: string | null;
icon?: React.ReactElement;
primaryText: string;
- amount?: number;
+ amount: number;
}
function SidebarListItem(props: ListItemPropsType) {
@@ -34,7 +34,7 @@ function SidebarListItem(props: ListItemPropsType) {
onClick={handleClick}
selected={name === filterBy}
leftIcon={icon}
- rightIcon={{amount}}
+ rightIcon={{(amount > 0) && amount}}
primaryText={primaryText}
/>
);