Skip to content

Commit

Permalink
πŸ› async validation looped validations
Browse files Browse the repository at this point in the history
Updating validation when single/collective installation
changes, provoked a validation loop.

TODO: Achieve this by other means
  • Loading branch information
vokimon committed Oct 24, 2024
1 parent bc5dc7e commit 0dc9161
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/components/CAUField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ export function CAUField(props) {
})
}

useEffect(() => {
if (props.value) {
const result = localCheck(props.value)
props.onChange({ ...result, valid: false })
}
}, [props.cupsToMatch])

return (
<ApiValidatedField
Expand Down

0 comments on commit 0dc9161

Please sign in to comment.