diff --git a/frontend/src/Components/ViewWeeklyReport.tsx b/frontend/src/Components/ViewWeeklyReport.tsx index d6d4692..afeb07e 100644 --- a/frontend/src/Components/ViewWeeklyReport.tsx +++ b/frontend/src/Components/ViewWeeklyReport.tsx @@ -15,13 +15,14 @@ export default function GetWeeklyReport(): JSX.Element { const [testingTime, setTestingTime] = useState(0); const token = localStorage.getItem("accessToken") ?? ""; + const username = localStorage.getItem("username") ?? ""; useEffect(() => { const fetchWeeklyReport = async (): Promise => { const response = await api.getWeeklyReport( - "username", + username, projectName, - "week", + week.toString(), token, );