diff --git a/src/services/missionInventoryUpdateService.ts b/src/services/missionInventoryUpdateService.ts index 21880195..09f64a9c 100644 --- a/src/services/missionInventoryUpdateService.ts +++ b/src/services/missionInventoryUpdateService.ts @@ -630,10 +630,9 @@ export const addMissionInventoryUpdates = async ( case "CalendarProgress": { const calendarProgress = getCalendarProgress(inventory); const currentSeason = getWorldState().KnownCalendarSeasons[0]; - const index = currentSeason.Days.findIndex( + calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx = currentSeason.Days.findIndex( x => x.events[0].challenge == value[value.length - 1].challenge ); - calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx = index; checkCalendarChallengeCompletion(calendarProgress, currentSeason); /*for (const progress of value) { const challengeName = progress.challenge.substring(progress.challenge.lastIndexOf("/") + 1);