Commit de5c2644 authored by Severine Duvaud's avatar Severine Duvaud
Browse files

Fixed tests for length and maxLength

parent c431628a
......@@ -70,14 +70,14 @@ function checkPreconditions(params) {
};
}
if (!Number(params.length)) {
if (params.length && !Number(params.length)) {
return {
hasError: true,
msg: "min. length not a number"
};
}
if (!Number(params.maxLength)) {
if (params.maxLength && !Number(params.maxLength)) {
return {
hasError: true,
msg: "max length not a number"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment