Skip to content
Snippets Groups Projects
Commit 6ae96f89 authored by 한동현's avatar 한동현
Browse files

fix: 로그인 직후 선택한 프로젝트 정보를 불러오지 못하는 오류 수정

parent 00b8a645
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ export const useAuthStore = create<AuthStore>()(
const { isAdmin, projects } = await response.json();
set({ token, username, isAdmin, projects });
get().setSelectedProject(projects[0]);
await get().setSelectedProject(projects[0]);
},
logout: () => set({ token: null, username: '', isAdmin: false, projects: [], selectedProject: null }),
}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment