chore: don't show completion percentage if user has no assigned issues (#1984)
This commit is contained in:
parent
a1acd2772e
commit
6e7701d854
1 changed files with 15 additions and 13 deletions
|
|
@ -162,6 +162,7 @@ export const ProfileSidebar = () => {
|
|||
</div>
|
||||
</div>
|
||||
<div className="flex-shrink-0 flex items-center gap-2">
|
||||
{project.assigned_issues > 0 && (
|
||||
<Tooltip tooltipContent="Completion percentage" position="left">
|
||||
<div
|
||||
className={`px-1 py-0.5 text-xs font-medium rounded ${
|
||||
|
|
@ -175,6 +176,7 @@ export const ProfileSidebar = () => {
|
|||
{completedIssuePercentage}%
|
||||
</div>
|
||||
</Tooltip>
|
||||
)}
|
||||
<Icon iconName="arrow_drop_down" className="!text-lg" />
|
||||
</div>
|
||||
</Disclosure.Button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue