diff --git a/frontend/src/Components/DisplayUserProjects.tsx b/frontend/src/Components/DisplayUserProjects.tsx index 426d266..29e4bcb 100644 --- a/frontend/src/Components/DisplayUserProjects.tsx +++ b/frontend/src/Components/DisplayUserProjects.tsx @@ -23,13 +23,8 @@ function DisplayUserProject(): JSX.Element { }; const handleProjectClick = async (projectName: string): Promise => { - const username = localStorage.getItem("username") ?? ""; const token = localStorage.getItem("accessToken") ?? ""; - const response = await api.checkIfProjectManager( - username, - projectName, - token, - ); + const response = await api.checkIfProjectManager(projectName, token); if (response.success) { if (response.data) { navigate(`/PMProjectPage/${projectName}`);