sort account volume chart 30d data by time
This commit is contained in:
parent
6af14734b1
commit
3e4f5633c9
|
@ -135,7 +135,9 @@ const VolumeChart = ({ hideChart }: { hideChart: () => void }) => {
|
|||
return dataTime >= limit
|
||||
})
|
||||
if (daysToShow === '30') {
|
||||
return chunkDataByDay(filtered)
|
||||
return chunkDataByDay(filtered).sort((a, b) =>
|
||||
a.time.localeCompare(b.time),
|
||||
)
|
||||
}
|
||||
return filtered
|
||||
}, [chartData, daysToShow])
|
||||
|
|
Loading…
Reference in New Issue