Skip to content

Commit

Permalink
Fix Project Instructions not picking up user opted language issue
Browse files Browse the repository at this point in the history
- Related to #6338
  • Loading branch information
royallsilwallz committed Apr 18, 2024
1 parent 7d26e0c commit a61d4d9
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 a61d4d9

Please sign in to comment.