fix: also increment LastCompletedDayIdx when completing a 1999 challenge
All checks were successful
Build / build (pull_request) Successful in 1m1s

This commit is contained in:
Sainan 2025-06-23 04:59:46 +02:00
parent cee622d5e9
commit da5ffcd552

View File

@ -622,6 +622,7 @@ export const addMissionInventoryUpdates = async (
const calendarProgress = getCalendarProgress(inventory); const calendarProgress = getCalendarProgress(inventory);
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);
calendarProgress.SeasonProgress.LastCompletedDayIdx++;
calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx++; calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx++;
calendarProgress.SeasonProgress.ActivatedChallenges.push(challengeName); calendarProgress.SeasonProgress.ActivatedChallenges.push(challengeName);
} }