remove intermediate variable
All checks were successful
Build / build (pull_request) Successful in 52s

This commit is contained in:
Sainan 2025-06-23 22:15:48 +02:00
parent 043ffeecef
commit c4404e2942

View File

@ -630,10 +630,9 @@ export const addMissionInventoryUpdates = async (
case "CalendarProgress": { case "CalendarProgress": {
const calendarProgress = getCalendarProgress(inventory); const calendarProgress = getCalendarProgress(inventory);
const currentSeason = getWorldState().KnownCalendarSeasons[0]; 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 x => x.events[0].challenge == value[value.length - 1].challenge
); );
calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx = index;
checkCalendarChallengeCompletion(calendarProgress, currentSeason); checkCalendarChallengeCompletion(calendarProgress, currentSeason);
/*for (const progress of value) { /*for (const progress of value) {
const challengeName = progress.challenge.substring(progress.challenge.lastIndexOf("/") + 1); const challengeName = progress.challenge.substring(progress.challenge.lastIndexOf("/") + 1);