Fix code that would detete majority of quest progress from profile

This commit is contained in:
Dev 2024-02-09 23:18:23 +00:00
parent d3f66a85a0
commit fbd371b5c7

View File

@ -1096,10 +1096,10 @@ export class QuestHelper
public findAndRemoveQuestFromArrayIfExists(questId: string, quests: IQuestStatus[]): void
{
const pmcQuestToReplaceStatus = quests.find((x) => x.qid === questId);
const pmcQuestToReplaceStatus = quests.find((quest) => quest.qid === questId);
if (pmcQuestToReplaceStatus)
{
quests.splice(quests.indexOf(pmcQuestToReplaceStatus, 1));
quests.splice(quests.indexOf(pmcQuestToReplaceStatus), 1);
}
}