Skip to content

Commit c235e4f

Browse files
committed
💄 Tweak UI errors
1 parent 9b732ac commit c235e4f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/routes/login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { PasswordInput } from "@/components/ui/password-input"
2323
import useAuth, { isLoggedIn } from "@/hooks/useAuth"
2424

2525
const formSchema = z.object({
26-
username: z.email(),
26+
username: z.email({ message: "Invalid email address" }),
2727
password: z
2828
.string()
2929
.min(1, { message: "Password is required" })

frontend/src/routes/recover-password.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import useCustomToast from "@/hooks/useCustomToast"
2525
import { handleError } from "@/utils"
2626

2727
const formSchema = z.object({
28-
email: z.email(),
28+
email: z.email({ message: "Invalid email address" }),
2929
})
3030

3131
type FormData = z.infer<typeof formSchema>

frontend/src/routes/signup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import useAuth, { isLoggedIn } from "@/hooks/useAuth"
2222

2323
const formSchema = z
2424
.object({
25-
email: z.email(),
25+
email: z.email({ message: "Invalid email address" }),
2626
full_name: z.string().min(1, { message: "Full Name is required" }),
2727
password: z
2828
.string()

0 commit comments

Comments
 (0)