From 05545f6f886d45c198af23fd0e4a1d0ce693886b Mon Sep 17 00:00:00 2001 From: Davenludd Date: Fri, 29 Mar 2024 17:53:37 +0100 Subject: [PATCH] Minor fixes --- frontend/src/Components/DisplayUserProjects.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/Components/DisplayUserProjects.tsx b/frontend/src/Components/DisplayUserProjects.tsx index 29e4bcb..494e6b0 100644 --- a/frontend/src/Components/DisplayUserProjects.tsx +++ b/frontend/src/Components/DisplayUserProjects.tsx @@ -25,8 +25,9 @@ function DisplayUserProject(): JSX.Element { const handleProjectClick = async (projectName: string): Promise => { const token = localStorage.getItem("accessToken") ?? ""; const response = await api.checkIfProjectManager(projectName, token); + console.log(response.data); if (response.success) { - if (response.data) { + if (response.data === true) { navigate(`/PMProjectPage/${projectName}`); } else { navigate(`/project/${projectName}`);