Skip to content

Commit e485b59

Browse files
authored
Update index.mdx (#8057)
'str' is undefined here - should it be 'firstWord'?
1 parent e209607 commit e485b59

File tree

1 file changed

+1
-1
lines changed
  • src/pages/[platform]/build-ui/formbuilder/validations

1 file changed

+1
-1
lines changed

src/pages/[platform]/build-ui/formbuilder/validations/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Every form provides an `onValidate` event handler to provide additional validati
5454
onValidate={{
5555
address: (value, validationResponse) => {
5656
const firstWord = value.split('')[0];
57-
if (!isNaN(str)) {
57+
if (!isNaN(firstWord)) {
5858
// check if the first word is a number
5959
return {
6060
hasError: true,

0 commit comments

Comments
 (0)