fix stats fees chart bug

This commit is contained in:
saml33 2024-01-27 21:31:06 +11:00
parent 1d1d600d1b
commit a597238beb
1 changed files with 3 additions and 3 deletions

View File

@ -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 (
<>