Skip to content

Commit

Permalink
small bug fix for scenario 3 observation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-Hundal committed Oct 29, 2024
1 parent 47d2c25 commit 53b7185
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/FOI/Home/ConfirmationModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const ConfirmationModal= ({
consultApplyRedlines,
handleApplyRedlines
}) => {
let disableConsultSaveButton = modalData?.modalFor === "consult" && selectedPublicBodyIDs.length < 1;

return (
<ReactModal
Expand Down Expand Up @@ -150,7 +151,7 @@ export const ConfirmationModal= ({
</DialogContentText>
</DialogContent>
<DialogActions className="foippa-modal-actions">
<button className="btn-bottom btn-save btn" onClick={saveDoc} disabled={selectedPublicBodyIDs.length < 1}>
<button className="btn-bottom btn-save btn" onClick={saveDoc} disabled={disableConsultSaveButton}>
{modalData?.modalButtonLabel}
</button>
<button
Expand Down

0 comments on commit 53b7185

Please sign in to comment.