Skip to content

Commit

Permalink
Issue feat PS-2647:Assign centers showing in red initially and once c…
Browse files Browse the repository at this point in the history
…hecked centers it turns to yellow
  • Loading branch information
AkshataKatwal16 committed Nov 26, 2024
1 parent 44ee128 commit 02e1430
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 02e1430

Please sign in to comment.