Skip to content

Commit

Permalink
Merge pull request #287 from alchemix-finance/fix/initial-render-of-a…
Browse files Browse the repository at this point in the history
…py-graph

FIX: Initial render of Historical APR Graph
  • Loading branch information
t0rbik authored Nov 27, 2024
2 parents 0a5949e + b2d53db commit a11bca8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/vaults/row/AprHistoricalChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const AprHistoricalGraph = ({ width, height, data }: AreaProps) => {

const avg = data.reduce((acc, cur) => acc + cur.apr, 0) / data.length;

if (width === 0) return null;
return (
<>
<svg width={width} height={height}>
Expand Down

0 comments on commit a11bca8

Please sign in to comment.