Skip to content

Commit

Permalink
fix(dashboard): Show step conditions counter only if > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
SokratisVidros committed Jan 28, 2025
1 parent 1de04e1 commit 2f2a38b
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,12 @@ export const ConfigureStepForm = (props: ConfigureStepFormProps) => {
>
<RiGuideFill className="h-4 w-4 text-neutral-600" />
Skip Conditions
<span className="ml-auto flex items-center gap-0.5">
<span>{conditionsCount}</span>
<RiArrowRightSLine className="ml-auto h-4 w-4 text-neutral-600" />
</span>
{conditionsCount > 0 && (
<span className="ml-auto flex items-center gap-0.5">
<span>{conditionsCount}</span>
<RiArrowRightSLine className="ml-auto h-4 w-4 text-neutral-600" />
</span>
)}
</Button>
</Link>
</SidebarContent>
Expand Down

0 comments on commit 2f2a38b

Please sign in to comment.