diff --git a/src/core_modules/capture-core/components/WidgetEnrollment/WidgetEnrollment.component.js b/src/core_modules/capture-core/components/WidgetEnrollment/WidgetEnrollment.component.js index 23a8763372..78c7f1cb08 100644 --- a/src/core_modules/capture-core/components/WidgetEnrollment/WidgetEnrollment.component.js +++ b/src/core_modules/capture-core/components/WidgetEnrollment/WidgetEnrollment.component.js @@ -42,8 +42,8 @@ const styles = { const getGeometryType = geometryType => (geometryType === 'Point' ? dataElementTypes.COORDINATE : dataElementTypes.POLYGON); -const getEnrollmentDateLabel = program => program.enrollmentDateLabel || i18n.t('Enrollment date'); -const getIncidentDateLabel = program => program.incidentDateLabel || i18n.t('Incident date'); +const getEnrollmentDateLabel = program => program.displayEnrollmentDateLabel || i18n.t('Enrollment date'); +const getIncidentDateLabel = program => program.displayIncidentDateLabel || i18n.t('Incident date'); export const WidgetEnrollmentPlain = ({ classes,