Skip to content

Commit

Permalink
fix: don't show returns avatar if zero
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomariscal committed Jun 5, 2023
1 parent 26da2b3 commit 726482c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/selectors/StrategySelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const StrategySelectItem = ({
</Box>
)}

{returns?.blendedAPY && (
{returns?.blendedAPY && +returns.blendedAPY > 0 && (
<Box fill align="end">
<Avatar
background={selected ? 'background' : strategy.currentSeries?.endColor.toString().concat('20')}
Expand Down

0 comments on commit 726482c

Please sign in to comment.