Skip to content

Commit

Permalink
cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreVasseur committed Feb 12, 2024
1 parent a469dea commit e377f4c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import D, { D1, D2 } from 'js/i18n';
import { formatValidation } from 'js/utils/validation';
import { z } from 'zod';

const listOfExtraMandatoryFields = (process.env.REACT_APP_VALIDATION_OPERATION_SERIES_EXTRA_MANDATORY_FIELDS ?? "").split(',');
const listOfExtraMandatoryFields = (process.env.REACT_APP_VALIDATION_OPERATION_SERIES_EXTRA_MANDATORY_FIELDS ?? "").split(',')

const fieldToTitleMapping = {
typeCode: D1.operationType,
accrualPeriodicityCode: D1.dataCollectFrequency
};
}

export const isMandatoryField = fieldName => listOfExtraMandatoryFields.indexOf(fieldName) >= 0;

Expand Down

0 comments on commit e377f4c

Please sign in to comment.