diff --git a/frontend/src/Components/DisplayUserProjects.tsx b/frontend/src/Components/DisplayUserProjects.tsx index 494e6b0..9cc04fe 100644 --- a/frontend/src/Components/DisplayUserProjects.tsx +++ b/frontend/src/Components/DisplayUserProjects.tsx @@ -27,7 +27,10 @@ function DisplayUserProject(): JSX.Element { const response = await api.checkIfProjectManager(projectName, token); console.log(response.data); if (response.success) { - if (response.data === true) { + if ( + (response.data as unknown as { isProjectManager: boolean }) + .isProjectManager + ) { navigate(`/PMProjectPage/${projectName}`); } else { navigate(`/project/${projectName}`);