Skip to content

[MDS-6385] NoD decision document upload conditions #3459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 13, 2025

Conversation

asinn134
Copy link
Collaborator

@asinn134 asinn134 commented Mar 12, 2025

Objective

MDS-6385

  • In NoD adjusted the requirement to upload a decision document to be only for statuses of "determined not substantial" and "determined substantial"

  • Uploading decision document not required when there is an existing one.

@@ -209,8 +220,16 @@ const NoticeOfDepartureModal: React.FC<NoticeOfDepartureModalProps> = (props) =>
};
})
);

setCurrentStatus(props?.initialValues?.nod_status);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if you can simplify things here with something like currentStatus = formValues?.nod_status since it always seems to be equal to that. Setting the initialValues on the form should also set the formValues.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right it does work with that change, its much cleaner.

Copy link

@asinn134 asinn134 merged commit ccd0142 into develop Mar 13, 2025
12 checks passed
@asinn134 asinn134 deleted the mds-6385-nod-upload-conditions branch March 13, 2025 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants