Guard against empty RepeatableQuests array in profile

This commit is contained in:
Dev 2023-11-19 16:12:20 +00:00
parent fa054307dd
commit aeea8f6e49

View File

@ -563,6 +563,10 @@ export class ProfileFixerService
this.logger.debug("Missing RepeatableQuests property added to profile");
}
}
else
{
pmcProfile.RepeatableQuests = [];
}
}
/**
@ -925,7 +929,7 @@ export class ProfileFixerService
}
}
for (const repeatable of fullProfile.characters.pmc.RepeatableQuests)
for (const repeatable of fullProfile.characters.pmc.RepeatableQuests ?? [])
{
for (const activeQuest of repeatable.activeQuests ?? [])
{