Skip to content

Commit

Permalink
Make DOB as required in edit profile form (thewca#10371)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel M James <[email protected]>
  • Loading branch information
danieljames-dj and Daniel M James authored Dec 6, 2024
1 parent 213e948 commit a6acff4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export default function EditProfileForm({
dropdownMode="select"
isoDate={editedProfileDetails?.dob}
onChange={handleDobChange}
required
/>
<Form.TextArea
label={i18n.t('page.contact_edit_profile.form.edit_reason.label')}
Expand Down
2 changes: 2 additions & 0 deletions app/webpacker/components/wca/UtcDatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function UtcDatePicker({
isoMaxDate = null,
dateFormatOverride = null,
timeFormatOverride = null,
required = false,
}) {
const date = useIsoDate(isoDate);

Expand Down Expand Up @@ -89,6 +90,7 @@ function UtcDatePicker({
endDate={endDate}
minDate={minDate}
maxDate={maxDate}
required={required}
/>
);
}
Expand Down

0 comments on commit a6acff4

Please sign in to comment.