diff --git a/frontend/src/Components/UserProjectListAdmin.tsx b/frontend/src/Components/UserProjectListAdmin.tsx index 423e793..c4857db 100644 --- a/frontend/src/Components/UserProjectListAdmin.tsx +++ b/frontend/src/Components/UserProjectListAdmin.tsx @@ -9,7 +9,7 @@ const UserProjectListAdmin: React.FC = () => { const fetchProjects = async (): Promise => { try { const token = localStorage.getItem("accessToken") ?? ""; - const username = getUsernameFromContext(); // Assuming you have a function to get the username from your context + const username = localStorage.getItem("username") ?? ""; const response = await api.getUserProjects(username, token); if (response.success) { @@ -32,7 +32,6 @@ const UserProjectListAdmin: React.FC = () => { {projects.map((project) => (
  • {project.name} - {/* Add any additional project details you want to display */}
  • ))}