Prevent Enabling Block group invites from bricking profile from loading. (!370)

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/370
This commit is contained in:
Kaeno 2024-07-07 15:34:31 +00:00
parent 7377a68a9e
commit c3de305175

View File

@ -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;
}
}