We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9bd1e6e + 2079cb5 commit 1c5c325Copy full SHA for 1c5c325
src/apps/profiles/src/hooks/useRatingHistoryOptions.tsx
@@ -39,7 +39,7 @@ export function useRatingHistoryOptions(
39
if (!trackHistory?.length) return undefined
40
41
options.series = [{
42
- data: trackHistory.sort((a, b) => b.date - a.date)
+ data: trackHistory.sort((a, b) => get(b, dateField) - get(a, dateField))
43
.map((hisChallenge: StatsHistory) => ({
44
name: hisChallenge.challengeName,
45
x: get(hisChallenge, dateField),
0 commit comments