1
mirror of https://github.com/thepeacockproject/Peacock synced 2025-03-27 11:12:44 +01:00

Fix planning page challenges ui ()

This commit is contained in:
moonysolari 2023-01-28 12:27:44 -05:00 committed by GitHub
parent 926168bbd1
commit 7b4e417cb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -734,6 +734,7 @@ export class ChallengeService extends ChallengeRegistry {
progression: ChallengeProgressionData, progression: ChallengeProgressionData,
gameVersion: GameVersion, gameVersion: GameVersion,
userId: string, userId: string,
isDestination = false,
): CompiledChallengeTreeData { ): CompiledChallengeTreeData {
return { return {
// GetChallengeTreeFor // GetChallengeTreeFor
@ -746,7 +747,7 @@ export class ChallengeService extends ChallengeRegistry {
}, },
Drops: [], Drops: [],
Completed: progression.Completed, Completed: progression.Completed,
IsPlayable: challenge.IsPlayable || false, IsPlayable: isDestination,
IsLocked: challenge.IsLocked || false, IsLocked: challenge.IsLocked || false,
HideProgression: false, HideProgression: false,
CategoryName: CategoryName:
@ -827,6 +828,7 @@ export class ChallengeService extends ChallengeRegistry {
progression, progression,
gameVersion, gameVersion,
userId, userId,
true, //isDestination
), ),
UserCentricContract: UserCentricContract:
challenge.Type === "contract" challenge.Type === "contract"