sort account volume chart 30d data by time

This commit is contained in:
saml33 2023-08-04 13:36:47 +10:00
parent 6af14734b1
commit 3e4f5633c9
1 changed files with 3 additions and 1 deletions

View File

@ -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])