Skip to content

Commit

Permalink
chore: 이메일이 입력되지 않았을 경우에도 중복확인 버튼 클릭 가능하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyunbak committed Oct 15, 2023
1 parent 281d8b5 commit 806a9a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/signUpForm/stepOne.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ export function StepOne({}: StepOneProps) {
name="email"
control={control}
rules={{
required: true,
required: {
value: true,
message: "이메일이 입력되지 않았습니다.",
},
pattern: {
value: /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/,
message: "이메일 형식이 올바르지 않습니다.",
Expand All @@ -106,7 +109,6 @@ export function StepOne({}: StepOneProps) {
<FormDupChkButton
isDupChk={emailDupChk}
onPress={emailDupChkButtonClickHandler}
disabled={!emailInputValue}
/>
</View>
</View>
Expand Down

0 comments on commit 806a9a9

Please sign in to comment.