{daysOfWeek.map((day, i) => (
{
3 단계
-
-
- 한번 더 확인이 필요해요.
+
+
+
diff --git a/src/components/sign/signup/PasswordVerification.tsx b/src/components/sign/signup/PasswordVerification.tsx
index adad434..4bb6bf4 100644
--- a/src/components/sign/signup/PasswordVerification.tsx
+++ b/src/components/sign/signup/PasswordVerification.tsx
@@ -55,12 +55,12 @@ const PasswordVerification = ({ onNext, applyValues }: PasswordVerificationProps
}, [selectedJob]);
const handlePasswordChange = (e: React.ChangeEvent
) => {
- setPasswordError(false);
const newPassword = e.target.value;
setPassword(newPassword);
+ checkValidPassword(newPassword);
};
- const checkValidPassword = () => {
+ const checkValidPassword = (password: string) => {
const passwordRegex = /^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[@#$%^&+=!])(?=\S+$).{8,16}$/;
if (!passwordRegex.test(password)) {
setPasswordError(true);
@@ -99,9 +99,12 @@ const PasswordVerification = ({ onNext, applyValues }: PasswordVerificationProps
3 단계
-
-
- 거의 다 완료되었어요!
+
+
+
@@ -199,7 +202,6 @@ const PasswordVerification = ({ onNext, applyValues }: PasswordVerificationProps
placeholder="비밀번호를 입력해주세요."
value={password}
onChange={handlePasswordChange}
- onBlur={checkValidPassword}
/>