Commit 72583297 authored by Yoon, Daeki's avatar Yoon, Daeki 😅
Browse files

Login 버그 수정

parent 1e910f2e
......@@ -16,7 +16,7 @@ export const Login = () => {
const location = useLocation() as LocationState;
const { login } = useAuth();
const from = location.state.from || "/";
const from = location.state?.from || "/";
function handleChange(e: ChangeEvent<HTMLInputElement>) {
const { name, value } = e.currentTarget;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment