Skip to content

Commit 145e85e

Browse files
authored
Merge pull request #176 from part3-4team-Taskify/feature/Gnb
[Fix] 비밀번호 불일치 시에도 회원가입 성공 에러 수정
2 parents cf9748f + fe34061 commit 145e85e

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)