fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-06-06 16:16:37 -04:00
1 parent 8ecd19701f
commit d29ec648bd
1 file changed
+2
+2
View File
@@ -191,6 +191,8 @@ export class Input extends React.Component<InputProps, State> {
return this.getValidatorError(value, validator) || (error instanceof Error ? error.message : String(error));
}
})());
} else if (!validator.validate(value, this.props)) {
errors.push(this.getValidatorError(value, validator));
}
}