Skip to content

Commit

Permalink
Merge pull request #458 from bcgov/MALS2-16_Auto_Check_Print_License
Browse files Browse the repository at this point in the history
Auto check print license checkbox
  • Loading branch information
barrfalk authored Mar 20, 2024
2 parents 1e145e3 + 9eacbba commit c47bdca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/client/src/features/licences/LicenceDetailsViewEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,12 @@ export default function LicenceDetailsViewEdit({ licence }) {
const onRenewCallback = (data) => {
const dates = data;
dispatch(renewLicence({ data: dates, id: licence.data.id }));
setIsPrintLicenceChecked(true);

let actionRequired = getValues("actionRequired");
let printLicence = true
let renewalNotice = getValues("renewalNotice");
setIsPrintLicenceChecked(printLicence);
dispatch(updateLicenceCheckboxes({data: { actionRequired, printLicence, renewalNotice }, id: licence.data.id }));
};

const onRenew = () => {
Expand Down

0 comments on commit c47bdca

Please sign in to comment.