Skip to content

Commit fe34061

Browse files
committed
[Fix] 비밀번호 불일치 시에도 회원가입 성공하는 문제 fix
1 parent 79568c1 commit fe34061

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/pages/signup.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ export default function SignUpPage() {
3333
const handleSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
3434
e.preventDefault();
3535

36+
if (password !== passwordCheck) {
37+
toast.error("비밀번호가 일치하지 않습니다.");
38+
return;
39+
}
40+
3641
if (!isFormValid) return;
3742
try {
3843
await signUp({

0 commit comments

Comments
 (0)