From c4404e294296213e6716de1ac1d6048c13f55f14 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Mon, 23 Jun 2025 22:15:48 +0200 Subject: [PATCH] remove intermediate variable --- src/services/missionInventoryUpdateService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);