From 873e2a62b929db0b9cfbcbee227c46ef5fb7f8e9 Mon Sep 17 00:00:00 2001 From: joh42 <138504087+joh42@users.noreply.github.com> Date: Fri, 28 Jul 2023 10:45:37 +0200 Subject: [PATCH] Corrected variable naming --- src/components/Form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }