Skip to content

Commit

Permalink
Update index.mdx (#8057)
Browse files Browse the repository at this point in the history
'str' is undefined here - should it be 'firstWord'?
  • Loading branch information
andrewtdunn authored Oct 29, 2024
1 parent e209607 commit e485b59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e485b59

Please sign in to comment.