Skip to content

Commit

Permalink
Merge pull request #220 from su-de-sh/fix/correct-password-placeholder
Browse files Browse the repository at this point in the history
fix: fix the password placeholder
  • Loading branch information
hemantwasthere authored Oct 23, 2023
2 parents 3edc47b + 10a2650 commit 889a4d2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions pages/__app/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@ const formSchema = z.object({
.string()
.min(3, { message: 'First name must be atleast 3 char long' })
.max(25, { message: 'First name must be less than 25 char' }),
lastName: z.string().refine(
(value) => value === "" || (value.length >= 3 && value.length <= 25),
{
message: 'Last name must be between 3 and 25 characters'
}
).optional(),
lastName: z
.string()
.refine(
(value) => value === '' || (value.length >= 3 && value.length <= 25),
{
message: 'Last name must be between 3 and 25 characters',
}
)
.optional(),
email: z.string().email({ message: 'Invalid email' }),
password: z
.string()
Expand Down Expand Up @@ -174,7 +177,7 @@ const SignUpPage: NextPage = () => {
<FormControl>
<Input
type="password"
placeholder="••••••••"
placeholder="Enter your password"
disabled={loading}
{...field}
/>
Expand Down

0 comments on commit 889a4d2

Please sign in to comment.