Skip to content

Commit

Permalink
no need to translate error
Browse files Browse the repository at this point in the history
  • Loading branch information
jabahum committed May 10, 2024
1 parent 15a45a9 commit 2402f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validators/form-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
];
}

0 comments on commit 2402f0a

Please sign in to comment.