Skip to content

Commit 616d131

Browse files
Effanuelethanshar
authored andcommitted
Fixed wrong parentheses (#799)
1 parent 2333af0 commit 616d131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/inputs/BaseInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export default class BaseInput extends BaseComponent {
198198
isRequiredField() {
199199
const {validate} = this.props;
200200
if (_.isArray(validate)) {
201-
return validate.indexOf[VALIDATORS.REQUIRED] !== -1;
201+
return validate.indexOf(VALIDATORS.REQUIRED) !== -1;
202202
}
203203
return validate === VALIDATORS.REQUIRED;
204204
}

0 commit comments

Comments
 (0)