feat(challenges): 修改挑战列表过滤条件为只显示正在进行的挑战
This commit is contained in:
@@ -50,7 +50,7 @@ export class ChallengesService {
|
||||
challenge,
|
||||
status: this.computeStatus(challenge.startAt, challenge.endAt),
|
||||
}))
|
||||
.filter(({ status }) => status !== ChallengeStatus.UPCOMING)
|
||||
.filter(({ status }) => status === ChallengeStatus.ONGOING)
|
||||
.sort((a, b) => {
|
||||
const priorityDiff = statusPriority[a.status] - statusPriority[b.status];
|
||||
if (priorityDiff !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user