-
Notifications
You must be signed in to change notification settings - Fork 38
[MDS-6114] update AMS fields #3258
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
@@ -104,7 +104,7 @@ export const LegalLandOwnerInformation: FC = () => { | |||
label="Legal Land Owner Name" | |||
component={RenderField} | |||
required={!is_legal_land_owner} | |||
validate={!is_legal_land_owner ? [required] : []} | |||
validate={!is_legal_land_owner ? [required, maxLength(100)] : []} |
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.
For this one and the one below- we only want the required validation when they're not the legal land owner, but shouldn't the other methods be in the second array? Like if it's not required, it should still have a max length, and below even if it's not required should still follow email validation. Existing issue I guess but may as well fix it?
|
|
|
|
Objective
MDS-6114
Why are you making this change? Provide a short explanation and/or screenshots