fix: Prevent GLIM and GSIM without members (#2340)

Makes sure GLIM and GSIM application menu item doesn't appear without
members. (This has already been in place for JLG.) Make sure GSIM can't
be created without members.

Fixes: WEB-62
This commit is contained in:
Felix van Hove
2025-03-22 13:58:37 -06:00
committed by GitHub
parent 6e9dc49758
commit 6615b64620
3 changed files with 24 additions and 16 deletions
@@ -94,7 +94,11 @@ export class CreateGsimAccountComponent {
* Checks validity of overall savings account form.
*/
get savingsAccountFormValid() {
return this.savingsAccountDetailsForm.valid && this.savingsAccountTermsForm.valid;
return (
this.savingsAccountDetailsForm.valid &&
this.savingsAccountTermsForm.valid &&
this.activeClientMembers.filter((m: any) => m.selected).length > 0
);
}
/**