Sort stats after retrieving from api

This commit is contained in:
2025-03-19 17:07:16 +01:00
parent 2c75603046
commit db294c171d
2 changed files with 6 additions and 3 deletions

View File

@@ -169,6 +169,7 @@ export function StatsPie({ data }: StatsPieProps) {
borderWidth: 1
}]
};
console.log(piedata)
const getTextColor = () => {
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'white' : 'black'
}