From 6e7701d85430257b7e904aa397756061fc08ab6c Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Mon, 28 Aug 2023 13:29:07 +0530 Subject: [PATCH] chore: don't show completion percentage if user has no assigned issues (#1984) --- 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 d49058c67..ba574441a 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}% +
+
+ )}