Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Oct 13, 2024
1 parent a34a274 commit a8eba5c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const SignInUpForm = () => {
if (signInUpStep === SignInUpStep.Init) {
continueWithEmail();
} else if (signInUpStep === SignInUpStep.Email) {
if (form?.formState?.errors?.email) {
if (isDefined(form?.formState?.errors?.email)) {
setShowErrors(true);
return;
}
Expand Down Expand Up @@ -182,7 +182,7 @@ export const SignInUpForm = () => {
placeholder="Email"
onBlur={onBlur}
onChange={(value: string) => {
onChange(value);
onChange(value);
if (signInUpStep === SignInUpStep.Password) {
continueWithEmail();
}
Expand Down Expand Up @@ -242,7 +242,7 @@ export const SignInUpForm = () => {
return;
}
if (signInUpStep === SignInUpStep.Email) {
if (form?.formState?.errors?.email) {
if (isDefined(form?.formState?.errors?.email)) {
setShowErrors(true);
return;
}
Expand Down

0 comments on commit a8eba5c

Please sign in to comment.