Skip to content

Commit

Permalink
Corrected variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
joh42 authored Jul 28, 2023
1 parent 2777af3 commit 873e2a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ function Form(props) {
setErrors(touchedInputErrors);
}

const atLeastOneInputTouched = _.keys(touchedInputs.current).length > 0
if (atLeastOneInputTouched) {
const isAtLeastOneInputTouched = _.keys(touchedInputs.current).length > 0
if (isAtLeastOneInputTouched) {
lastValidatedValues.current = values;
}

Expand Down

0 comments on commit 873e2a6

Please sign in to comment.