Skip to content

Commit

Permalink
Update print licence checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
vmanawat committed Mar 20, 2024
1 parent 04cee7c commit 9eacbba
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 9eacbba

Please sign in to comment.