diff --git a/project/src/controllers/ProfileController.ts b/project/src/controllers/ProfileController.ts index f6121190..754f9e86 100644 --- a/project/src/controllers/ProfileController.ts +++ b/project/src/controllers/ProfileController.ts @@ -497,7 +497,16 @@ export class ProfileController return false; } - profileToUpdate.Info.SelectedMemberCategory = request.memberCategory; + if (request.memberCategory !== null) + { + profileToUpdate.Info.SelectedMemberCategory = request.memberCategory; + } + + if(request.squadInviteRestriction !== null) + { + profileToUpdate.Info.SquadInviteRestriction = request.squadInviteRestriction; + } + return true; } }