Skip to content

Commit

Permalink
Refactor : 최초 랜더시 에러 표시 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
jobkaeHenry committed Dec 5, 2023
1 parent 0264f02 commit 5c285aa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/src/app/(logoutOnly)/auth/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ export default function SignUpPage() {
<SignupStep
title={`원활한 환경을 위해\n이메일을 입력해 주세요😃`}
error={
!new RegExp(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/).test(
formData.email
)
formData.email
? !new RegExp(
/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/
).test(formData.email)
: undefined
}
>
<TextField
Expand Down

0 comments on commit 5c285aa

Please sign in to comment.