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>
|
</div>
|
||||||
<div className="flex-shrink-0 flex items-center gap-2">
|
<div className="flex-shrink-0 flex items-center gap-2">
|
||||||
|
{project.assigned_issues > 0 && (
|
||||||
<Tooltip tooltipContent="Completion percentage" position="left">
|
<Tooltip tooltipContent="Completion percentage" position="left">
|
||||||
<div
|
<div
|
||||||
className={`px-1 py-0.5 text-xs font-medium rounded ${
|
className={`px-1 py-0.5 text-xs font-medium rounded ${
|
||||||
|
|
@ -175,6 +176,7 @@ export const ProfileSidebar = () => {
|
||||||
{completedIssuePercentage}%
|
{completedIssuePercentage}%
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
)}
|
||||||
<Icon iconName="arrow_drop_down" className="!text-lg" />
|
<Icon iconName="arrow_drop_down" className="!text-lg" />
|
||||||
</div>
|
</div>
|
||||||
</Disclosure.Button>
|
</Disclosure.Button>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue