Skip to content

Commit

Permalink
Merge pull request #358 from TripInfoWeb/dev_auth
Browse files Browse the repository at this point in the history
fix: 빌드 오류 수정
  • Loading branch information
ssssksss authored Sep 21, 2024
2 parents f2c111f + 320f900 commit f7394c9
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 f7394c9

Please sign in to comment.