From 3e720cceea8429a750dea245c4f4a2019d01cdc2 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal Date: Fri, 25 Aug 2023 18:52:24 +0530 Subject: [PATCH] chore: don't show completion percentage if user has no assigned issues --- apps/app/components/profile/sidebar.tsx | 28 +++++++++++++------------ 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/apps/app/components/profile/sidebar.tsx b/apps/app/components/profile/sidebar.tsx index d49058c677a..ba574441ab9 100644 --- a/apps/app/components/profile/sidebar.tsx +++ b/apps/app/components/profile/sidebar.tsx @@ -162,19 +162,21 @@ export const ProfileSidebar = () => {
- -
- {completedIssuePercentage}% -
-
+ {project.assigned_issues > 0 && ( + +
+ {completedIssuePercentage}% +
+
+ )}