-
Notifications
You must be signed in to change notification settings - Fork 38
[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
Conversation
@@ -209,8 +220,16 @@ const NoticeOfDepartureModal: React.FC<NoticeOfDepartureModalProps> = (props) => | |||
}; | |||
}) | |||
); | |||
|
|||
setCurrentStatus(props?.initialValues?.nod_status); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
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.