From a597238beb67de8d6631207b9a4df341bdbe4c39 Mon Sep 17 00:00:00 2001 From: saml33 Date: Sat, 27 Jan 2024 21:31:06 +1100 Subject: [PATCH] fix stats fees chart bug --- components/stats/mango/Fees.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/stats/mango/Fees.tsx b/components/stats/mango/Fees.tsx index 2f074b0a..e83b22be 100644 --- a/components/stats/mango/Fees.tsx +++ b/components/stats/mango/Fees.tsx @@ -94,15 +94,15 @@ const Fees = () => { } transformedData.unshift(perpFeeChartData[0]) - if (feesDaysToShow === '30') { + if (feesPerpDaysToShow === '30') { feeChartData = groupPerpByHourlyInterval(transformedData, 24) - } else if (feesDaysToShow === '7') { + } else if (feesPerpDaysToShow === '7') { feeChartData = groupPerpByHourlyInterval(transformedData, 4) } else feeChartData = transformedData } return feeChartData - }, [feesDaysToShow, perpFeeChartData, showCumulativePerpFees]) + }, [feesPerpDaysToShow, perpFeeChartData, showCumulativePerpFees]) return ( <>