Skip to content

Commit

Permalink
fix(GoalCriteria): do not show zero weight
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Jun 28, 2023
1 parent fd805f6 commit d5d125d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/GoalCriteria/GoalCriteria.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,11 @@ const GoalCriteriaItem: React.FC<GoalCriteriaItemProps> = memo((props) => {
</CriteriaTitle>
)}
<ContentItem>
<Text weight="bold" size="s" color={gray9}>
{weight}
</Text>
{nullable(weight, () => (
<Text weight="bold" size="s" color={gray9}>
{weight}
</Text>
))}
</ContentItem>
<ContentItem>
{nullable(state, (s) => (
Expand Down

0 comments on commit d5d125d

Please sign in to comment.