diff --git a/src/components/vaults/row/AprHistoricalChart.tsx b/src/components/vaults/row/AprHistoricalChart.tsx index ee1544f7..eec86644 100644 --- a/src/components/vaults/row/AprHistoricalChart.tsx +++ b/src/components/vaults/row/AprHistoricalChart.tsx @@ -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 ( <>