Skip to content

Commit

Permalink
비밀번호 재확인 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdbsx committed Sep 10, 2023
1 parent 44aac59 commit 0b8c89a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/pages/mypage/Mypage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,20 @@ const Mypage: React.FC = () => {
const handleSubmit = async (e: any): Promise<void> => {
e.preventDefault();
try {
if (passwordChangeChk && !isInfoChange) {
if (rePasswordChk || passwordErrorChk || passwordReconfirmSuccessChk) {
} else if (rePassword.length === 0) {
if (
(passwordChangeChk && !isInfoChange) ||
rePasswordChk ||
passwordErrorChk ||
passwordReconfirmSuccessChk
) {
if (rePassword.length === 0) {
setRePasswordExistChk(true);
} else if (newPassword.length === 0) {
setNewPasswordExistChk(true);
} else if (newRePassword.length === 0) {
setNewRePasswordExistChk(true);
}
} else {
console.log(password);
await fetch
.put("/api/users/update/" + email, {
eml: email,
Expand Down

0 comments on commit 0b8c89a

Please sign in to comment.