diff --git a/src/process/validation/rules/__tests__/validateMultiple.test.ts b/src/process/validation/rules/__tests__/validateMultiple.test.ts index abbc28f1..f44bcfd7 100644 --- a/src/process/validation/rules/__tests__/validateMultiple.test.ts +++ b/src/process/validation/rules/__tests__/validateMultiple.test.ts @@ -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', diff --git a/src/process/validation/rules/validateMultiple.ts b/src/process/validation/rules/validateMultiple.ts index 8fc64db2..b7018ba6 100644 --- a/src/process/validation/rules/validateMultiple.ts +++ b/src/process/validation/rules/validateMultiple.ts @@ -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; }