Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit e723b86

Browse files
Merge branch 'nursoltan-s-issue-75' into bugbash
2 parents c4ed1db + a13e118 commit e723b86

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/constants/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const SORT_ORDER = {
5959
};
6060

6161
export const SORT_BY_SORT_ORDER = {
62-
bestMatch: SORT_ORDER.DESC,
62+
// bestMatch: SORT_ORDER.DESC,
6363
updated: SORT_ORDER.DESC,
6464
"overview.totalPrizes": SORT_ORDER.DESC,
6565
name: SORT_ORDER.ASC,

src/reducers/filter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ const defaultState = {
1414
endDateStart: null,
1515
page: 1,
1616
perPage: constants.PAGINATION_PER_PAGES[0],
17-
sortBy: constants.CHALLENGE_SORT_BY_RECOMMENDED,
17+
sortBy: constants.CHALLENGE_SORT_BY_MOST_RECENT,
1818
totalPrizesFrom: 0,
1919
totalPrizesTo: 10000,
2020
// ---
2121

2222
bucket: constants.FILTER_BUCKETS[1],
23-
recommended: false,
2423
},
2524
};
2625

src/utils/challenge.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,7 @@ const queryScheme = {
115115
tags: Joi.array().items(Joi.string()),
116116
startDateEnd: Joi.date(),
117117
endDateStart: Joi.date(),
118-
sortBy: Joi.string().valid(
119-
"bestMatch",
120-
"updated",
121-
"overview.totalPrizes",
122-
"name"
123-
),
118+
sortBy: Joi.string().valid("updated", "overview.totalPrizes", "name"),
124119
groups: Joi.array().items(Joi.optionalId()).unique(),
125120
events: Joi.array().items(Joi.string()),
126121
bucket: Joi.bucket(),

0 commit comments

Comments
 (0)