react-redux-semantic-ui icon indicating copy to clipboard operation
react-redux-semantic-ui copied to clipboard

Validation.js

Open melitus opened this issue 7 years ago • 1 comments

As a baby programmer, i am using this great repo to learn best practice and how to write clean code .Using the utils/validation.js in another project, i got the the following error. rule is not a function. Please how can i solve this. Thanks

melitus avatar Aug 29 '18 17:08 melitus

Sorry for the late reply. Can you find "src/utils/validation.js" and add console.log(rules) after "export function createValidator(rules, params) {" (line# 57) to make sure all rules are function?

dongcai avatar Sep 20 '18 17:09 dongcai