From cc973bb9ef2834375811af8ecc7a1aff76374bd4 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Fri, 11 Sep 2020 17:02:56 +0300 Subject: [PATCH] fix isPath message (#860) Signed-off-by: Jari Kolehmainen --- src/renderer/components/input/input.validators.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/input/input.validators.ts b/src/renderer/components/input/input.validators.ts index 4e18468da9..611394134f 100644 --- a/src/renderer/components/input/input.validators.ts +++ b/src/renderer/components/input/input.validators.ts @@ -44,7 +44,7 @@ export const isUrl: Validator = { export const isPath: Validator = { condition: ({ type }) => type === "text", - message: () => _i18n._(t`This field must be a path to an existing file`), + message: () => _i18n._(t`This field must be a valid path`), validate: value => !value || fse.pathExistsSync(value), } @@ -73,4 +73,4 @@ export const accountId: Validator = { export const conditionalValidators = [ isRequired, isEmail, isNumber, isUrl, minLength, maxLength -]; \ No newline at end of file +];