diff --git a/project/src/helpers/QuestHelper.ts b/project/src/helpers/QuestHelper.ts index 41078b59..aeb11964 100644 --- a/project/src/helpers/QuestHelper.ts +++ b/project/src/helpers/QuestHelper.ts @@ -65,7 +65,7 @@ export class QuestHelper */ public getQuestStatus(pmcData: IPmcData, questId: string): QuestStatus { - const quest = pmcData.Quests.find(q => q.qid === questId); + const quest = pmcData.Quests?.find(q => q.qid === questId); return quest ? quest.status