Skip to content

Commit

Permalink
Fix HistoricalYieldChart to ensure values are numbers for proper rend…
Browse files Browse the repository at this point in the history
…ering
  • Loading branch information
marcinciarka committed Dec 4, 2024
1 parent b81d46d commit 484c8ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const HistoricalYieldChart = ({ aprHourlyList }: { aprHourlyList: string[
.reverse()
.map((item, itemIndex) => ({
name: now.subtract(itemIndex, 'hour').format('MMM DD, HH:mm'),
'Summer Strategy': new BigNumber(item).toFixed(2),
'Summer Strategy': Number(new BigNumber(item).toFixed(2)), // this has to be a number for the chart to render it properly
}))
.reverse()
}, [aprHourlyList])
Expand Down

0 comments on commit 484c8ce

Please sign in to comment.