Skip to content

Commit

Permalink
Merge pull request #7731 from opencrvs/fix-error-messages
Browse files Browse the repository at this point in the history
fix: label param in required error messages
  • Loading branch information
tahmidrahman-dsi authored Oct 4, 2024
2 parents f1993a4 + fb8659f commit fe92deb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ class ReviewSectionComp extends React.Component<FullProps, State> {
<RequiredField id={`required_label_${section.id}_${field.name}`}>
{field.ignoreFieldLabelOnErrorMessage ||
(field.previewGroup &&
this.props.intl.formatMessage(field.label) + ' ')}
this.props.intl.formatMessage(field.label, field.labelParam) + ' ')}
{this.props.intl.formatMessage(
errorsOnField.message,
errorsOnField.props
Expand Down

0 comments on commit fe92deb

Please sign in to comment.