diff --git a/frontend/src/Components/UserProjectListAdmin.tsx b/frontend/src/Components/UserProjectListAdmin.tsx index 60e9ab7..423e793 100644 --- a/frontend/src/Components/UserProjectListAdmin.tsx +++ b/frontend/src/Components/UserProjectListAdmin.tsx @@ -9,8 +9,9 @@ const UserProjectListAdmin: React.FC = () => { const fetchProjects = async (): Promise<void> => { try { const token = localStorage.getItem("accessToken") ?? ""; + const username = getUsernameFromContext(); // Assuming you have a function to get the username from your context - const response = await api.getUserProjects("", token); + const response = await api.getUserProjects(username, token); if (response.success) { setProjects(response.data ?? []); } else {