Skip to content

Commit

Permalink
fix: form validation prop
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Aug 10, 2021
1 parent 96b5c38 commit 6a1c96b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/FormView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const FormView = ({
const onVerifyCaptcha = useCallback(
(token) => {
// eslint-disable-next-line react-hooks/exhaustive-deps
console.log(token);
validToken = token;
},
[validToken],
Expand Down Expand Up @@ -114,7 +113,7 @@ const FormView = ({
onChange={() => {}}
disabled
valid
formHasErrors={formErrors.length > 0}
formHasErrors={formErrors?.length > 0}
/>
</Grid.Column>
</Grid.Row>
Expand All @@ -137,6 +136,7 @@ const FormView = ({
}
value={formData[name]?.value}
valid={isValidField(name)}
formHasErrors={formErrors?.length > 0}
/>
</Grid.Column>
</Grid.Row>
Expand Down

0 comments on commit 6a1c96b

Please sign in to comment.