Skip to content

Commit

Permalink
Merge pull request hotosm#6343 from hotosm/fix/6338-project-instructi…
Browse files Browse the repository at this point in the history
…ons-language-issue

Fix Project Instructions not picking up user opted language issue
  • Loading branch information
ramyaragupathy authored Apr 22, 2024
2 parents 7d26e0c + a61d4d9 commit 918b7cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/api/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ export const useProjectQuery = (projectId) => {
});
};
export const useProjectSummaryQuery = (projectId, otherOptions = {}) => {
const token = useSelector((state) => state.auth.token);
const locale = useSelector((state) => state.preferences['locale']);

const fetchProjectSummary = ({ signal }) => {
return api().get(`projects/${projectId}/queries/summary/`, {
return api(token, locale).get(`projects/${projectId}/queries/summary/`, {
signal,
});
};
Expand Down

0 comments on commit 918b7cc

Please sign in to comment.