From e485b59f076dc698fcc23a5af23696ff9093a50e Mon Sep 17 00:00:00 2001 From: "Andrew T. Dunn" Date: Tue, 29 Oct 2024 18:36:56 -0500 Subject: [PATCH] Update index.mdx (#8057) 'str' is undefined here - should it be 'firstWord'? --- src/pages/[platform]/build-ui/formbuilder/validations/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[platform]/build-ui/formbuilder/validations/index.mdx b/src/pages/[platform]/build-ui/formbuilder/validations/index.mdx index 49ddec5045b..140a334c9aa 100644 --- a/src/pages/[platform]/build-ui/formbuilder/validations/index.mdx +++ b/src/pages/[platform]/build-ui/formbuilder/validations/index.mdx @@ -54,7 +54,7 @@ Every form provides an `onValidate` event handler to provide additional validati onValidate={{ address: (value, validationResponse) => { const firstWord = value.split('')[0]; - if (!isNaN(str)) { + if (!isNaN(firstWord)) { // check if the first word is a number return { hasError: true,