Minor fixes

This commit is contained in:
Davenludd 2024-03-29 17:53:37 +01:00
parent 4a71078f2a
commit 05545f6f88

View file

@ -25,8 +25,9 @@ function DisplayUserProject(): JSX.Element {
const handleProjectClick = async (projectName: string): Promise<void> => {
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}`);