forked from OpenWF/SpaceNinjaServer
		
	fix: also increment LastCompletedDayIdx when completing a 1999 challenge (#2256)
Fixes #2255 Reviewed-on: OpenWF/SpaceNinjaServer#2256 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									f61d15b496
								
							
						
					
					
						commit
						271f5bd47a
					
				@ -622,6 +622,7 @@ export const addMissionInventoryUpdates = async (
 | 
			
		||||
                const calendarProgress = getCalendarProgress(inventory);
 | 
			
		||||
                for (const progress of value) {
 | 
			
		||||
                    const challengeName = progress.challenge.substring(progress.challenge.lastIndexOf("/") + 1);
 | 
			
		||||
                    calendarProgress.SeasonProgress.LastCompletedDayIdx++;
 | 
			
		||||
                    calendarProgress.SeasonProgress.LastCompletedChallengeDayIdx++;
 | 
			
		||||
                    calendarProgress.SeasonProgress.ActivatedChallenges.push(challengeName);
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user