fix: password not updatable after an api error (#8514)
* fix: error clearance * changes --------- Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
2 files changed
+1
-4
No files matched your search
@@ -347,10 +347,6 @@ const PlainForm = <T extends FieldValues>(props: FormProps<T>, ref: Ref<HTMLForm
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
if (form.formState?.errors?.apiError) {
|
||||
form.clearErrors("root");
|
||||
}
|
||||
|
||||
form
|
||||
.handleSubmit(handleSubmit)(event)
|
||||
.catch((err) => {
|
||||
|
||||
Reference in new issue
Block a user