Skip to content

Commit

Permalink
fix: 빌드 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ssssksss committed Sep 21, 2024
1 parent a083adf commit 320f900
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/containers/auth/AuthGoogleContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 320f900

Please sign in to comment.