remove intermediate variable
All checks were successful
Build / build (pull_request) Successful in 52s
All checks were successful
Build / build (pull_request) Successful in 52s
This commit is contained in:
parent
043ffeecef
commit
c4404e2942
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user