From 320f90072a76475f220ec96bca34f0a0b35f31fe Mon Sep 17 00:00:00 2001 From: "SK\\ssssk" Date: Sun, 22 Sep 2024 03:22:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B9=8C=EB=93=9C=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/containers/auth/AuthGoogleContainer.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/containers/auth/AuthGoogleContainer.tsx b/src/containers/auth/AuthGoogleContainer.tsx index b2c561df..bb96f039 100644 --- a/src/containers/auth/AuthGoogleContainer.tsx +++ b/src/containers/auth/AuthGoogleContainer.tsx @@ -5,7 +5,6 @@ import useAuthStore from "@/store/authStore"; import UrlQueryStringToObject from "@/utils/UrlQueryStringToObject"; import { useRouter } from "next/navigation"; import { useEffect } from "react"; -import { userResponseDto } from "../../types/UserDto"; const AuthGoogleContainer = () => { const router = useRouter(); @@ -37,7 +36,7 @@ const AuthGoogleContainer = () => { const userDataResponse = await fetch("/api/auth/user"); if (userDataResponse.status == 200) { const userData = await userDataResponse.json(); - authStore.setUser(userData as userResponseDto); + authStore.setUser(userData); router.push("/"); } else { throw new Error("Failed to fetch user data");