Skip to content

Commit

Permalink
conditionalize challenge result list filters for find challenge page (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak authored Feb 6, 2025
1 parent 4a5c7b6 commit ac722fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const challengePassesArchivedFilter = function (filter, challenge) {
if (!filter.archived) {
if (filter.archived === false) {
return challenge.isArchived === false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/services/Challenge/ChallengeGlobal/ChallengeGlobal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const challengePassesGlobalFilter = function (filter, challenge) {
if (!filter.global) {
if (location.pathname === "/browse/challenges" && !filter.global) {
return challenge.isGlobal === false;
}

Expand Down

0 comments on commit ac722fa

Please sign in to comment.