From c3de305175d723bf7b78620ee40b7e010de6425c Mon Sep 17 00:00:00 2001 From: Kaeno Date: Sun, 7 Jul 2024 15:34:31 +0000 Subject: [PATCH] Prevent Enabling Block group invites from bricking profile from loading. (!370) Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/370 --- project/src/controllers/ProfileController.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; } }