diff --git a/frontend/src/api/projects.js b/frontend/src/api/projects.js index 66163644b8..f9d46564d3 100644 --- a/frontend/src/api/projects.js +++ b/frontend/src/api/projects.js @@ -37,8 +37,10 @@ export const useProjectsQuery = (fullProjectsQuery, action) => { }; export const useProjectQuery = (projectId) => { + const token = useSelector((state) => state.auth.token); + const locale = useSelector((state) => state.preferences['locale']); const fetchProject = ({ signal }) => { - return api().get(`projects/${projectId}/`, { + return api(token, locale).get(`projects/${projectId}/`, { signal, }); };