fix: avoid addition by undefined when adding skill points
All checks were successful
Build / build (pull_request) Successful in 45s
Build / build (push) Successful in 2m17s

This commit is contained in:
Sainan 2025-05-31 18:01:33 +02:00
parent 28da982c80
commit a82079c5c0
2 changed files with 3 additions and 3 deletions

View File

@ -326,8 +326,8 @@ export const addMissionInventoryUpdates = async (
break; break;
} }
case "PlayerSkillGains": { case "PlayerSkillGains": {
inventory.PlayerSkills.LPP_SPACE += value.LPP_SPACE; inventory.PlayerSkills.LPP_SPACE += value.LPP_SPACE ?? 0;
inventory.PlayerSkills.LPP_DRIFTER += value.LPP_DRIFTER; inventory.PlayerSkills.LPP_DRIFTER += value.LPP_DRIFTER ?? 0;
break; break;
} }
case "CustomMarkers": { case "CustomMarkers": {

View File

@ -96,7 +96,7 @@ export type IMissionInventoryUpdateRequest = {
FpsSamples: number; FpsSamples: number;
EvolutionProgress?: IEvolutionProgress[]; EvolutionProgress?: IEvolutionProgress[];
FocusXpIncreases?: number[]; FocusXpIncreases?: number[];
PlayerSkillGains: IPlayerSkills; PlayerSkillGains: Partial<IPlayerSkills>;
CustomMarkers?: ICustomMarkers[]; CustomMarkers?: ICustomMarkers[];
LoreFragmentScans?: ILoreFragmentScan[]; LoreFragmentScans?: ILoreFragmentScan[];
VoidTearParticipantsCurrWave?: { VoidTearParticipantsCurrWave?: {