Skip to content

Commit

Permalink
fix: fixed API querystring param for repo_id for treemap API call
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline committed Oct 11, 2023
1 parent 70a67f0 commit 0b914ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hooks/api/useContributorsByProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import publicApiFetcher from "lib/utils/public-api-fetcher";
export const useContributorsByProject = (listId: string, range: number) => {
const [repoId, setRepoId] = useState<number | null>(null);
const { data, error } = useSWR<DBProjectContributor[]>(
`lists/${listId}/stats/top-project-contributions-by-contributor?repoId=${repoId}&range=${range}`,
`lists/${listId}/stats/top-project-contributions-by-contributor?repo_id=${repoId}&range=${range}`,
publicApiFetcher as Fetcher<DBProjectContributor[], Error>
);

Expand Down

0 comments on commit 0b914ba

Please sign in to comment.