diff --git a/src/components/Form.js b/src/components/Form.js index ba6b571dc43c..9f93046b5d44 100644 --- a/src/components/Form.js +++ b/src/components/Form.js @@ -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; }