Skip to content

Commit

Permalink
Merge pull request #434 from AkshataKatwal16/reassign-cohorts
Browse files Browse the repository at this point in the history
Issue feat PS-2647:Assign centers showing in red initially and once checked centers it turns to yellow
  • Loading branch information
itsvick authored Nov 26, 2024
2 parents 1e77702 + 02e1430 commit 6e887d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DynamicForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ const DynamicForm: React.FC<DynamicFormProps> = ({
case 'minItems': {
const property = error.property.substring(1);
if (schema.properties?.[property]?.type === 'array' && schema.required?.includes(property)) {
error.message = t('FORM_ERROR_MESSAGES.THIS_IS_REQUIRED_FIELD', {
error.message = submittedButtonStatus ? t('FORM_ERROR_MESSAGES.THIS_IS_REQUIRED_FIELD', {
minLength: schema.properties?.[property]?.minLength,
});
}):""
}
break;
}
Expand Down

0 comments on commit 6e887d8

Please sign in to comment.