Skip to content
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

Throw validation error if day, month, or year are blank in household member birthday #594

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

spokenbird
Copy link
Contributor

No description provided.

@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-594 February 1, 2024 00:39 Inactive
@@ -23,7 +23,8 @@ public Map<String, List<String>> runValidation(FormSubmission formSubmission, Su
String year = (String) inputData.get("householdMemberBirthYear");

// valid range does not enforce year so added an additional validation here
if((day + month + year).isBlank()) {
if((day.isBlank() || month.isBlank() || year.isBlank())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think theres one extra layer of parenthesis

Copy link
Contributor

@sree-cfa sree-cfa left a comment

Choose a reason for hiding this comment

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

lgtm

@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-594 February 1, 2024 18:15 Inactive
Copy link
Contributor

@analoo analoo left a comment

Choose a reason for hiding this comment

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

LGTM

@spokenbird spokenbird merged commit d20ed0c into main Feb 1, 2024
5 checks passed
@spokenbird spokenbird deleted the require-dob-in-household branch February 1, 2024 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants