fix stats fees chart bug
This commit is contained in:
parent
1d1d600d1b
commit
a597238beb
|
@ -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 (
|
||||
<>
|
||||
|
|
Loading…
Reference in New Issue