@@ -36,13 +36,11 @@ export function SignupForm({ locale, returnTo }: SignupFormProps) {
3636 const [ verificationRequired , setVerificationRequired ] = useState ( false ) ;
3737 const [ email , setEmail ] = useState ( '' ) ;
3838
39- // Live values
4039 const [ nameValue , setNameValue ] = useState ( '' ) ;
4140 const [ emailValueLive , setEmailValueLive ] = useState ( '' ) ;
4241 const [ passwordValue , setPasswordValue ] = useState ( '' ) ;
4342 const [ confirmPasswordValue , setConfirmPasswordValue ] = useState ( '' ) ;
4443
45- // Touched flags (show messages only after blur)
4644 const [ nameTouched , setNameTouched ] = useState ( false ) ;
4745 const [ emailTouched , setEmailTouched ] = useState ( false ) ;
4846 const [ passwordTouched , setPasswordTouched ] = useState ( false ) ;
@@ -94,7 +92,7 @@ export function SignupForm({ locale, returnTo }: SignupFormProps) {
9492 const emailErrorText = useMemo ( ( ) => {
9593 if ( ! emailTouched ) return null ;
9694
97- if ( ! emailTrimmed ) return null ;
95+ if ( ! emailTrimmed ) return "Email is required" ;
9896
9997 if ( emailTrimmed . length > EMAIL_MAX_LEN ) {
10098 return `Email must not exceed ${ EMAIL_MAX_LEN } characters.` ;
@@ -117,7 +115,7 @@ export function SignupForm({ locale, returnTo }: SignupFormProps) {
117115
118116 const confirmPolicyErrorText =
119117 confirmPasswordTouched && ! confirmPasswordPolicyOk
120- ? `Repeat password must meet requirements: ${ passwordRequirementsText } `
118+ ? `Password must meet requirements: ${ passwordRequirementsText } `
121119 : null ;
122120
123121 const mismatchErrorText =
@@ -282,7 +280,7 @@ export function SignupForm({ locale, returnTo }: SignupFormProps) {
282280 < PasswordField
283281 id = "confirmPassword"
284282 name = "confirmPassword"
285- placeholder = "Repeat password"
283+ placeholder = "Confirm password"
286284 autoComplete = "new-password"
287285 minLength = { PASSWORD_MIN_LEN }
288286 maxLength = { PASSWORD_MAX_LEN }
0 commit comments