File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
components/challenge-listing/Listing/Bucket
reducers/challenge-listing Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export default function Bucket({
58
58
refs . current . push ( el ) ;
59
59
}
60
60
} ;
61
- const activeSort = sort || 'updated ' ;
61
+ const activeSort = sort || 'startDate ' ;
62
62
63
63
const sortedChallenges = activeBucket === 'all' ? _ . clone ( challenges . slice ( 0 , 10 ) ) : _ . clone ( challenges ) ;
64
64
// sortedChallenges.sort(Sort[activeSort].func);
Original file line number Diff line number Diff line change @@ -810,8 +810,8 @@ function create(initialState) {
810
810
selectedCommunityId : 'All' ,
811
811
812
812
sorts : {
813
- ongoing : 'updated ' ,
814
- openForRegistration : 'updated ' ,
813
+ ongoing : 'startDate ' ,
814
+ openForRegistration : 'startDate ' ,
815
815
my : 'startDate' ,
816
816
// past: 'updated',
817
817
reviewOpportunities : 'review-opportunities-start-date' ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export const BUCKET_DATA = {
52
52
// hideCount: false,
53
53
name : 'Open for registration' ,
54
54
sorts : [
55
- SORTS . MOST_RECENT ,
55
+ SORTS . MOST_RECENT_START_DATE ,
56
56
// SORTS.TIME_TO_REGISTER,
57
57
// SORTS.TIME_TO_SUBMIT,
58
58
// SORTS.NUM_REGISTRANTS,
@@ -71,7 +71,7 @@ export const BUCKET_DATA = {
71
71
// hideCount: false,
72
72
name : 'Ongoing challenges' ,
73
73
sorts : [
74
- SORTS . MOST_RECENT ,
74
+ SORTS . MOST_RECENT_START_DATE ,
75
75
// SORTS.CURRENT_PHASE,
76
76
SORTS . TITLE_A_TO_Z ,
77
77
// SORTS.PRIZE_HIGH_TO_LOW,
You can’t perform that action at this time.
0 commit comments