Merge branch 'FE/PasswordResetAuthPage' into 'frontend'

[Front-End] fix: 인증번호 입력 시 다음 비밀번호에 인증번호가 남는 오류 수정

See merge request s11-webmobile1-sub2/S11P12A701!204
This commit is contained in:
조민우 2024-08-14 10:25:05 +09:00
commit 62fdec081a

View File

@ -5,7 +5,6 @@ import styles from './PasswordResetAuthPage.module.css';
import { usePasswordReset } from '../../hooks/api/usePasswordReset';
export default function PasswordResetPage() {
// TODO:
const location = useLocation();
const email = location.state;
const navigate = useNavigate();
@ -23,6 +22,7 @@ export default function PasswordResetPage() {
setAuthError(false);
verify(authNumRef.current.value, email)
.then(() => {
authNumRef.current.value = '';
setSentAuthNum(true);
})
.catch((err) => {