diff --git a/frontend/src/hooks/query/useAddOAuthUserQuery.ts b/frontend/src/hooks/query/useAddOAuthUserQuery.ts index 4e7740996..9031c5cb7 100644 --- a/frontend/src/hooks/query/useAddOAuthUserQuery.ts +++ b/frontend/src/hooks/query/useAddOAuthUserQuery.ts @@ -22,7 +22,7 @@ const useAddOAuthUserQuery = () => { onSuccess: () => { queryClient.invalidateQueries({ queryKey: [QUERY_KEYS.AUTH] }); - const initAmplitudeUser = async () => { + const initUser = async () => { const result = await getUserInfo(); setUser(result); @@ -30,7 +30,7 @@ const useAddOAuthUserQuery = () => { showToast({ message: `${user?.userName}님, 환영합니다.`, type: 'confirm' }); }; - initAmplitudeUser(); + initUser(); }, }); }; diff --git a/frontend/src/hooks/query/usePostSignInQuery.ts b/frontend/src/hooks/query/usePostSignInQuery.ts index 35d30d8b1..daf89e12a 100644 --- a/frontend/src/hooks/query/usePostSignInQuery.ts +++ b/frontend/src/hooks/query/usePostSignInQuery.ts @@ -20,7 +20,7 @@ const usePostSignInQuery = () => { onSuccess: () => { queryClient.invalidateQueries({ queryKey: [QUERY_KEYS.AUTH] }); - const initAmplitudeUser = async () => { + const initUser = async () => { const result = await getUserInfo(); setUser(result); @@ -28,8 +28,7 @@ const usePostSignInQuery = () => { showToast({ message: `${user?.userName}님, 환영합니다.`, type: 'confirm' }); }; - initAmplitudeUser(); - + initUser(); navigate(ROUTE_PATH.home); }, });