chore: use some instead of find

This commit is contained in:
Sainan 2025-06-27 19:29:55 +02:00
parent 4fcac6dc37
commit 0f2b6c68cd

View File

@ -372,7 +372,7 @@ const getSeasonChallengePools = (syndicateTag: string): IRotatingSeasonChallenge
hardWeekly: syndicate.weeklyChallenges!.filter(x => hardWeekly: syndicate.weeklyChallenges!.filter(x =>
x.startsWith("/Lotus/Types/Challenges/Seasons/WeeklyHard/") x.startsWith("/Lotus/Types/Challenges/Seasons/WeeklyHard/")
), ),
hasWeeklyPermanent: !!syndicate.weeklyChallenges!.find(x => hasWeeklyPermanent: syndicate.weeklyChallenges!.some(x =>
x.startsWith("/Lotus/Types/Challenges/Seasons/Weekly/SeasonWeeklyPermanent") x.startsWith("/Lotus/Types/Challenges/Seasons/Weekly/SeasonWeeklyPermanent")
) )
}; };