Fix code that would detete majority of quest progress from profile
This commit is contained in:
parent
d3f66a85a0
commit
fbd371b5c7
@ -1096,10 +1096,10 @@ export class QuestHelper
|
|||||||
|
|
||||||
public findAndRemoveQuestFromArrayIfExists(questId: string, quests: IQuestStatus[]): void
|
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)
|
if (pmcQuestToReplaceStatus)
|
||||||
{
|
{
|
||||||
quests.splice(quests.indexOf(pmcQuestToReplaceStatus, 1));
|
quests.splice(quests.indexOf(pmcQuestToReplaceStatus), 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user