Skip to content

Commit

Permalink
fix(TEMPERARY): regard undefined as unaccepted when hide solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Lil-Ran committed Aug 31, 2024
1 parent 353a48e commit 2f5b5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GZCTF/ClientApp/src/components/ChallengePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const ChallengePanel: FC = () => {
(chal) =>
!hideSolved ||
(teamInfo &&
teamInfo.rank?.challenges?.find((c) => c.id === chal.id)?.type ===
(teamInfo.rank?.challenges?.find((c) => c.id === chal.id)?.type ?? SubmissionType.Unaccepted) ===
SubmissionType.Unaccepted)
)) ?? []
const searchedChallenges = unsolvedTaggedChallenges.filter(
Expand Down

0 comments on commit 2f5b5cb

Please sign in to comment.