Skip to content

Commit 5375cdb

Browse files
committed
fix: #296
1 parent 89f06c9 commit 5375cdb

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/module/user/orderChallenges.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function removeUnnecessaryChallenges(
3737
masterOnly = false,
3838
pointsOnly = false,
3939
search = "",
40-
capstones = true
40+
capstones = true,
4141
) {
4242
let challenges = {};
4343
challengesArray.forEach((challenge) => {
@@ -144,7 +144,7 @@ export function removeUnnecessaryChallenges(
144144
currentChallenge.id > 10
145145
) {
146146
parentChallengeId = parseInt(
147-
getChallenge(parentChallengeId)["tags"]["parent"]
147+
getChallenge(parentChallengeId)["tags"]["parent"],
148148
);
149149
} else {
150150
iterationCount = 10;
@@ -209,7 +209,8 @@ export function removeUnnecessaryChallenges(
209209
challenge[8] === 2024300 ||
210210
challenge[6].parent === "0" ||
211211
challenge[8] === 601000 ||
212-
challenge[8] === 602000
212+
challenge[8] === 602000 ||
213+
challenge[8] === 603000
213214
) {
214215
return null;
215216
}
@@ -270,15 +271,15 @@ export default function orderChallenges(
270271
masterOnly,
271272
pointsOnly,
272273
search,
273-
capstones
274+
capstones,
274275
) {
275276
challenges = removeUnnecessaryChallenges(
276277
challenges,
277278
extraFilter,
278279
masterOnly,
279280
pointsOnly,
280281
search,
281-
!capstones
282+
!capstones,
282283
);
283284

284285
let sortAlgorithm = function (a, b) {

0 commit comments

Comments
 (0)