From 2402f0ac989b2c3939861ea891dd970f1fa39888 Mon Sep 17 00:00:00 2001 From: jabahum Date: Fri, 10 May 2024 21:21:15 +0300 Subject: [PATCH] no need to translate error --- src/validators/form-validator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validators/form-validator.ts b/src/validators/form-validator.ts index b18bfd56..e5224018 100644 --- a/src/validators/form-validator.ts +++ b/src/validators/form-validator.ts @@ -115,9 +115,9 @@ export function textInputLengthValidator(minLength: string, maxLength: string, i export function addError(errorCode: string, message: string): [{}] { return [ { - resultType: translateFrom('@openmrs/esm-form-engine-app', 'error', 'error'), + resultType: 'error', errCode: errorCode, - message: translateFrom('@openmrs/esm-form-engine-app', 'message', message), + message: message, }, ]; }