Minor fixes
This commit is contained in:
parent
4a71078f2a
commit
05545f6f88
1 changed files with 2 additions and 1 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Reference in a new issue