Skip to content

Commit

Permalink
fix(clerk-js): Clear formField error when submitting in `AddDomainPag…
Browse files Browse the repository at this point in the history
…e` (#1589)
  • Loading branch information
panteliselef authored Aug 11, 2023
1 parent 47a1b26 commit cef78c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changeset/selfish-avocados-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const AddDomainPage = withCardStateProvider(() => {
const canSubmit = organization.name !== nameField.value;

const onSubmit = (e: React.FormEvent) => {
nameField.setError(undefined);
e.preventDefault();
return organization
.createDomain(nameField.value)
Expand Down

0 comments on commit cef78c3

Please sign in to comment.