Commit 6105e5cd authored by Christopher Mark Fullarton's avatar Christopher Mark Fullarton
Browse files

Fixes duplicate adding of member groups

parent f891a41c
......@@ -138,8 +138,10 @@ export class MemberGroupManagerComponent implements OnInit, OnDestroy {
}
public addMemberGroup(): void {
if (!this.formGroup.get('memberGroupName').value || this.memberGroups.length === this.groupColors.length) {
console.log('no value found or group limit reached');
if (!this.formGroup.get('memberGroupName').value ||
this.memberGroups.length === this.groupColors.length ||
this.memberGroupExists()
) {
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment