From 45847a4b72536d61781a0074c201b37efa06bb14 Mon Sep 17 00:00:00 2001 From: minkyung00 Date: Fri, 10 Feb 2023 21:12:36 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=82=AC=EC=9A=A9=EC=9E=90=20=EB=8C=80?= =?UTF-8?q?=ED=9A=8C=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EC=BF=BC=EB=A6=AC=ED=82=A4=20=EB=B3=80=EA=B2=BD=20(#65)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constants/queryKeys.ts | 3 ++- src/pages/User/hooks/query/useUserCompetitionListQuery.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/constants/queryKeys.ts b/src/constants/queryKeys.ts index dc5ba44..29663cb 100644 --- a/src/constants/queryKeys.ts +++ b/src/constants/queryKeys.ts @@ -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', diff --git a/src/pages/User/hooks/query/useUserCompetitionListQuery.ts b/src/pages/User/hooks/query/useUserCompetitionListQuery.ts index bc305f9..d074617 100644 --- a/src/pages/User/hooks/query/useUserCompetitionListQuery.ts +++ b/src/pages/User/hooks/query/useUserCompetitionListQuery.ts @@ -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;