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

[Edit child] The 'ЗБЕРЕГТИ' button stays enabled when mandatory 'По-батькові' field is empty #962 #974

Merged
merged 13 commits into from
Mar 18, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class CreateChildComponent extends CreateFormComponent implements OnInit,
this.ChildrenFormArray.valueChanges.pipe(
takeUntil(this.destroy$),
).subscribe((val: boolean) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

change please typo

this.isEmpty = !Boolean(val[0].lastName) || !Boolean(val[0].firstName);
this.isEmpty = !(val[0].lastName || val[0].firstName || val[0].middleName);
});

}
Expand Down