diff --git a/frontend/src/Components/UserStatistics.tsx b/frontend/src/Components/UserStatistics.tsx index 5cbf5ef..c84f1a0 100644 --- a/frontend/src/Components/UserStatistics.tsx +++ b/frontend/src/Components/UserStatistics.tsx @@ -18,9 +18,14 @@ export default function UserStatistics(): JSX.Element { const token = localStorage.getItem("accessToken") ?? ""; const { projectName } = useParams(); + const { username } = useParams(); const fetchTimePerActivity = async (): Promise => { - const response = await api.getStatistics(projectName ?? "", token); + const response = await api.getStatistics( + projectName ?? "", + token, + username ?? "", + ); { if (response.success) { const statistics: Statistics = response.data ?? {