minor fix
This commit is contained in:
parent
0f7f866cde
commit
b93ef48500
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue