Skip to content

Commit

Permalink
Merge pull request #47 from jadmsaadaot/SUBMIT-task#61
Browse files Browse the repository at this point in the history
Validate form on submit
  • Loading branch information
jadmsaadaot authored Aug 26, 2024
2 parents c390dd9 + 84043d3 commit 960cba0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const queryParamSchema = yup.object().shape({
type QueryParamsSchema = yup.InferType<typeof queryParamSchema>;

export const Route = createFileRoute(
"/_authenticated/registration/create-account"
"/_authenticated/registration/create-account",
)({
component: CreateAccount,
});
Expand Down Expand Up @@ -58,7 +58,7 @@ function CreateAccount() {

const methods = useForm({
resolver: yupResolver(createAccountSchema),
mode: "onBlur",
mode: "onSubmit",
});

const { handleSubmit } = methods;
Expand Down

0 comments on commit 960cba0

Please sign in to comment.