Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
mamartinezmejia committed Dec 12, 2023
1 parent 489409a commit 0e503e3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/src/helpers/validators/GlobalValidators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,7 @@ export const validate = (
condition: string,
fieldId: string = fieldKey
): string => {
if (eval(condition)) {
// NOSONAR
if (eval(condition)) { // NOSONAR
const validationResponse = validation(item);
if (notify && validationResponse) {
errorBus.emit([{ fieldId, errorMsg: validationResponse }]);
Expand Down Expand Up @@ -526,8 +525,7 @@ export const runValidation = (
condition: string,
fieldId: string = fieldKey
): string => {
if (eval(condition)) {
// NOSONAR
if (eval(condition)) { // NOSONAR
const validationResponse = validation(item);
if (notify) {
// Note: also notifies when valid - errorMsg will be empty.
Expand Down

0 comments on commit 0e503e3

Please sign in to comment.