Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit fb7d11c

Browse files
authored
Merge pull request #841 from klis87/patch-1
Fixed required validator in docs/api/Form.md
2 parents 82691aa + 2b5fb60 commit fb7d11c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/Form.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The `<Form>` component is a decorated `<form>` component with a few helpful prop
66
import { Form, Control } from 'react-redux-form';
77
import { isEmail, isEmpty } from 'validator';
88

9-
const required = isEmpty;
9+
const required = str => !isEmpty(str);
1010

1111
const passwordsMatch = ({ password, confirmPassword }) => {
1212
return password === confirmPassword;

0 commit comments

Comments
 (0)