Skip to content

Commit e5a49c0

Browse files
fix: correct typo in MINIMUM_REQUIRED_LENGTH variable name
1 parent c99b21f commit e5a49c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/dokploy/pages/register.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,33 @@ import { useForm } from "react-hook-form";
2424
import { toast } from "sonner";
2525
import { z } from "zod";
2626
export const PASSWORD_RANGE = 8;
27-
const MINIMUN_REQUIRED_LENGTH = 1;
27+
const MINIMUM_REQUIRED_LENGTH = 1;
2828
const TIMEOUT_DURATION = 2000;
2929

3030
const registerSchema = z
3131
.object({
32-
name: z.string().min(MINIMUN_REQUIRED_LENGTH , {
32+
name: z.string().min(MINIMUM_REQUIRED_LENGTH , {
3333
message: "Name is required",
3434
}),
3535
email: z
3636
.string()
37-
.min(MINIMUN_REQUIRED_LENGTH, {
37+
.min(MINIMUM_REQUIRED_LENGTH, {
3838
message: "Email is required",
3939
})
4040
.email({
4141
message: "Email must be a valid email",
4242
}),
4343
password: z
4444
.string()
45-
.min(MINIMUN_REQUIRED_LENGTH, {
45+
.min(MINIMUM_REQUIRED_LENGTH, {
4646
message: "Password is required",
4747
})
4848
.refine((password) => password === "" || password.length >= PASSWORD_RANGE, {
4949
message: "Password must be at least 8 characters",
5050
}),
5151
confirmPassword: z
5252
.string()
53-
.min(MINIMUN_REQUIRED_LENGTH, {
53+
.min(MINIMUM_REQUIRED_LENGTH, {
5454
message: "Password is required",
5555
})
5656
.refine(

0 commit comments

Comments
 (0)