This commit is contained in:
parent
e970ea7842
commit
2da50612b9
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ const CodeStats = () => {
|
||||||
const { data, isLoading, error } = useQuery({
|
const { data, isLoading, error } = useQuery({
|
||||||
queryKey: ["codestats"],
|
queryKey: ["codestats"],
|
||||||
queryFn: () =>
|
queryFn: () =>
|
||||||
wakapiApi.get(`summary?interval=week`).then((res) => res.data),
|
wakapiApi.get(`summary?interval=month`).then((res) => res.data),
|
||||||
})
|
})
|
||||||
|
|
||||||
const grandTotal = data?.projects.reduce((acc, curr) => acc + curr.total, 0)
|
const grandTotal = data?.projects.reduce((acc, curr) => acc + curr.total, 0)
|
||||||
|
|
@ -50,7 +50,7 @@ const CodeStats = () => {
|
||||||
100
|
100
|
||||||
).toFixed(1),
|
).toFixed(1),
|
||||||
}))
|
}))
|
||||||
.slice(0, 4)
|
.slice(0, 8)
|
||||||
|
|
||||||
const projectsChartData =
|
const projectsChartData =
|
||||||
personalProjects &&
|
personalProjects &&
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue