Skip to content

Commit

Permalink
[MDS-5546] fix update contact bug (#2764)
Browse files Browse the repository at this point in the history
* fix bug on checkbox.

* fix bug on project lead end date.

* update attribute.
  • Loading branch information
henryoforeh-dev authored Oct 30, 2023
1 parent 5866a3e commit d439c8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/core-web/src/components/common/RenderCheckbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const propTypes = {
};

const RenderCheckbox = (props) => {
const [checked, setChecked] = useState(false);
const [checked, setChecked] = useState(props.input.value || false);
const onChange = (e) => {
setChecked(e.target.checked);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const EditPartyModal = (props) => {
party.project_lead_start_date = moment(formatDate(projectLeadInfo.start_date)).format(
"YYYY-MM-DD"
);
party.project_end_date = projectLeadInfo.end_date
party.project_lead_end_date = projectLeadInfo.end_date
? moment(formatDate(projectLeadInfo.end_date)).format("YYYY-MM-DD")
: null;
}
Expand Down

0 comments on commit d439c8d

Please sign in to comment.