Skip to content

Commit

Permalink
Merge pull request #159 from SejongPeer/Juyoung
Browse files Browse the repository at this point in the history
로그인:비번,아이디 잘못 친 경우 에러처리
  • Loading branch information
kimjuyoung78 authored Mar 3, 2024
2 parents 7a982e2 + 8948c65 commit 6c2fad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Components/Login/SignIn/SignIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const SignIn = () => {
);

if (!response.ok) {
alert("아이디나 비밀번호가 일치하지 않습니다.");
const errorData = await response.json(); // 오류 응답을 처리합니다.
throw new Error(data.message);
}
Expand Down Expand Up @@ -87,7 +88,7 @@ const SignIn = () => {
} catch (error) {
console.error("Error occurred:", error);
console.error(error.message);
alert(error.message);
//alert(error.message);
e.preventDefault();
}
};
Expand Down

0 comments on commit 6c2fad5

Please sign in to comment.