diff --git a/frontend/src/API/API.ts b/frontend/src/API/API.ts index dfec5e9..cfb53b0 100644 --- a/frontend/src/API/API.ts +++ b/frontend/src/API/API.ts @@ -58,7 +58,6 @@ interface API { * @returns {APIResponse} A list of weekly reports */ getWeeklyReportsForUser( - username: string, projectName: string, token: string, ): Promise>; diff --git a/frontend/src/Components/AllTimeReportsInProject.tsx b/frontend/src/Components/AllTimeReportsInProject.tsx index 26f26cf..1a34e41 100644 --- a/frontend/src/Components/AllTimeReportsInProject.tsx +++ b/frontend/src/Components/AllTimeReportsInProject.tsx @@ -15,10 +15,9 @@ function AllTimeReportsInProject(): JSX.Element { const getWeeklyReports = async (): Promise => { const token = localStorage.getItem("accessToken") ?? ""; - const response = await api.getWeeklyReportsForProject( - localStorage.getItem("username") ?? "", - projectName ?? "", + const response = await api.getWeeklyReportsForUser( token, + projectName ?? "", ); console.log(response); if (response.success) {