Skip to content

Commit

Permalink
Merge pull request #1976 from TimaQT/features/timaqt/EMBCESSMOD-5036
Browse files Browse the repository at this point in the history
EMBCESSMOD-5035, EMBCESSMOD-5036 - Pets/Family Validation
  • Loading branch information
ytqsl authored Mar 28, 2024
2 parents f0ede4d + 6206384 commit 04382dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export interface PersonDetails {
initials?: null | string;
lastName: string;
preferredName?: null | string;
isPrimaryRegistrant?: boolean
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@ export class PetForm {
customValidator
.conditionalValidation(
() => this.addPetIndicator.value,
Validators.required
Validators.required,
)
.bind(customValidator)
.bind(customValidator),
customValidator.whitespaceValidator()
]
]
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export class NeedsAssessmentService {
return [...this.householdMembers, primaryMember];
} else if (
!this.householdMembers.find(
(member) => member.isPrimaryRegistrant === true
(member) => member.details.isPrimaryRegistrant === true
)
) {
return [...this.householdMembers, primaryMember];
Expand Down

0 comments on commit 04382dd

Please sign in to comment.