From d29ec648bd9adb9b0fd9b59823e2ca3f101334d8 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Mon, 6 Jun 2022 16:16:37 -0400 Subject: [PATCH] fix tests Signed-off-by: Sebastian Malton --- src/renderer/components/input/input.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/components/input/input.tsx b/src/renderer/components/input/input.tsx index f3e015806a..ef4b419909 100644 --- a/src/renderer/components/input/input.tsx +++ b/src/renderer/components/input/input.tsx @@ -191,6 +191,8 @@ export class Input extends React.Component { 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)); } }