Skip to content

Commit

Permalink
fix: 사용자 대회 리스트 조회 쿼리키 변경 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
newminkyung committed Feb 10, 2023
1 parent 8e43576 commit 45847a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/constants/queryKeys.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const QUERY_KEYS = {
USER: 'user',
USER_COMPETITIONS: 'user-competitions',
USER_CONTRIBUTIONS: 'user-contributions',
ADMIN_USER_EDIT: 'admin-user-edit',
ADMIN_ALL_PROBLEMS: 'admin-all-problems',
ADMIN_ALL_ANNOUNCEMENTS: 'admin-all-announcements',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/User/hooks/query/useUserCompetitionListQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const useUserCompetitionListQuery = (
>
) => {
return useSuspenseQuery(
[QUERY_KEYS.USER, username],
[QUERY_KEYS.USER_COMPETITIONS, username],
async ({ queryKey: [, username] }) => {
const { data } = await getUserCompetitionList(username);
return data;
Expand Down

0 comments on commit 45847a4

Please sign in to comment.