1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-22 22:12:45 +01:00

Fix planning page challenges ui (#95)

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

View File

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