From fbd371b5c790e10131fcf5b31da635551aa36d27 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 9 Feb 2024 23:18:23 +0000 Subject: [PATCH] Fix code that would detete majority of quest progress from profile --- project/src/helpers/QuestHelper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/helpers/QuestHelper.ts b/project/src/helpers/QuestHelper.ts index 4c760856..5d7fdabc 100644 --- a/project/src/helpers/QuestHelper.ts +++ b/project/src/helpers/QuestHelper.ts @@ -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); } }