Skip to content

Commit

Permalink
remove archived filter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Aug 12, 2024
1 parent 2452e97 commit 3b79c07
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/components/ChallengePane/ChallengePane.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ShowChallengeListTogglesInternal = (props) => {
<input
type="checkbox"
className="mr-checkbox-toggle mr-mr-1 mr-mb-6 mr-ml-4"
checked={!props.filteringGlobal}
checked={props.filteringGlobal}
onChange={() => {
props.setSearchFilters({ filterGlobal: !props.filteringGlobal })

Check warning on line 51 in src/components/ChallengePane/ChallengePane.js

View check run for this annotation

Codecov / codecov/patch

src/components/ChallengePane/ChallengePane.js#L50-L51

Added lines #L50 - L51 were not covered by tests
}}
Expand Down Expand Up @@ -127,7 +127,7 @@ export class ChallengePane extends Component {

render() {
const showingArchived = this.props.history.location.search.includes("archived=true");
const filteringGlobal = this.props.history.location.search.includes("filterGlobal") ? this.props.history.location.search.includes("filterGlobal=true") : true;
const filteringGlobal = this.props.history.location.search.includes("filterGlobal=true")
const challengeStatus = [ChallengeStatus.ready,
ChallengeStatus.partiallyLoaded,
ChallengeStatus.none,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ import { challengePassesLocationFilter }
from '../../../services/Challenge/ChallengeLocation/ChallengeLocation'
import { challengePassesGlobalFilter }
from '../../../services/Challenge/ChallengeGlobal/ChallengeGlobal'
import { challengePassesArchivedFilter }
from '../../../services/Challenge/ChallengeArchived/ChallengeArchived'
import { challengePassesProjectFilter }
from '../../../services/Challenge/ChallengeProject/ChallengeProject'

const allFilters = [
challengePassesGlobalFilter,
challengePassesArchivedFilter,
challengePassesDifficultyFilter,
challengePassesKeywordFilter,
challengePassesCategorizationKeywordsFilter,
Expand Down
7 changes: 0 additions & 7 deletions src/services/Challenge/ChallengeArchived/ChallengeArchived.js

This file was deleted.

0 comments on commit 3b79c07

Please sign in to comment.