Skip to content

Commit

Permalink
fix typo in validateMultiple
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyNikipelau committed May 17, 2024
1 parent a4f1563 commit d49a8c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('validateMultiple', () => {

it('should return false for textArea component with as !== json', () => {
const component: TextAreaComponent = {
type: 'textArea',
type: 'textarea',
as: 'text',
input: true,
key: 'textArea',
Expand Down
2 changes: 1 addition & 1 deletion src/process/validation/rules/validateMultiple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const isEligible = (component: Component) => {
return false;
}
return true;
case 'textArea':
case 'textarea':
if (!(component as TextAreaComponent).as || (component as TextAreaComponent).as !== 'json') {
return false;
}
Expand Down

0 comments on commit d49a8c0

Please sign in to comment.