Skip to content

Commit

Permalink
Merge pull request #1213 from yieldprotocol/fix/no-show-returns
Browse files Browse the repository at this point in the history
fix: don't show returns avatar if currently zero estimated returns
  • Loading branch information
brucedonovan authored Jun 7, 2023
2 parents 26da2b3 + 726482c commit d322ad3
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 d322ad3

Please sign in to comment.