fix warnings

This commit is contained in:
smthbh 2025-04-28 20:34:15 -04:00
parent e6b1d1b09b
commit f12e6bae79
2 changed files with 13 additions and 4 deletions

View file

@ -427,8 +427,17 @@ export class CharacterController {
const otherQuests = await this.getQuests(otherRealm.name, otherCharData.guid);
// Group quests by category
const categories: { [key: string]: any[] } = {};
const addQuestsToCategories = (quests: any[], source: string) => {
interface IQuestComparison {
id: number;
title: string;
questLevel: number;
char1Status?: 'Completed' | 'In Progress';
char2Status?: 'Completed' | 'In Progress';
}
const categories: { [key: string]: IQuestComparison[] } = {};
const addQuestsToCategories = (quests: IQuest[], source: 'char1Status' | 'char2Status') => {
quests.forEach(quest => {
const category = quest.questSortID > 0 ?
this.getZoneName(quest.questSortID) :
@ -446,7 +455,7 @@ export class CharacterController {
id: quest.id,
title: quest.title,
questLevel: quest.questLevel,
[source]: quest.status,
[source]: quest.status
});
}
});