Remove unused variable and update API call in YourProjectsPage.tsx
This commit is contained in:
parent
17c30f5dd9
commit
b8c69fabf5
1 changed files with 1 additions and 2 deletions
|
@ -11,9 +11,8 @@ function UserProjectPage(): JSX.Element {
|
|||
const [selectedProject, setSelectedProject] = useState("");
|
||||
|
||||
const getProjects = async (): Promise<void> => {
|
||||
const username = localStorage.getItem("username") ?? "";
|
||||
const token = localStorage.getItem("accessToken") ?? "";
|
||||
const response = await api.getUserProjects(username, token);
|
||||
const response = await api.getUserProjects(token);
|
||||
console.log(response);
|
||||
if (response.success) {
|
||||
setProjects(response.data ?? []);
|
||||
|
|
Loading…
Add table
Reference in a new issue