);
}
diff --git a/frontend/src/auth/signup.tsx b/frontend/src/auth/signup.tsx
index 3919dc2c328a759bea93607a040bf37d05f59516..4bca70e72267bf277579c6c5a690d0a90e2b89ad 100644
--- a/frontend/src/auth/signup.tsx
+++ b/frontend/src/auth/signup.tsx
@@ -1,5 +1,5 @@
import React, { FormEvent, useEffect, useState } from "react";
-import { Link, useNavigate } from "react-router-dom";
+import { Link, Navigate } from "react-router-dom";
import { authApi } from "../apis";
import { catchErrors } from "../helpers";
import { SpinnerIcon } from "../icons";
@@ -17,7 +17,6 @@ export default function Signup() {
const [error, setError] = useState("");
const [disabled, setDisabled] = useState(false);
const [success, setSuccess] = useState(false);
- const navigate = useNavigate();
useEffect(() => {
setDisabled(!(user.name && user.email && user.password && user.password2));
@@ -65,7 +64,7 @@ export default function Signup() {
if (success) {
alert("회원가입 되었습니다");
- navigate("/login", { replace: true });
+ return