Skip to content

Commit

Permalink
Do not show NaN in charts (#1685)
Browse files Browse the repository at this point in the history
  • Loading branch information
osdnk committed Feb 5, 2021
1 parent e9e2bdb commit 690f489
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export default function ChartPercentChangeLabel() {
data?.points?.[0]?.y) *
100 -
100;
if (isNaN(value)) {
return '';
}
return (
(android ? '' : value > 0 ? '↑' : value < 0 ? '↓' : '') +
' ' +
Expand Down

0 comments on commit 690f489

Please sign in to comment.