@@ -111,7 +111,6 @@ export class DashboardPageContainer extends React.Component {
111
111
getSrms,
112
112
// getTopcoderBlogFeed,
113
113
handle,
114
- memberId,
115
114
profile,
116
115
srmsLoading,
117
116
srmsTimestamp,
@@ -138,7 +137,7 @@ export class DashboardPageContainer extends React.Component {
138
137
&& ! financesLoading ) getMemberFinances ( handle , tokenV3 ) ;
139
138
140
139
if ( now - srmsTimestamp > CACHE_MAX_AGE
141
- && ! srmsLoading ) getSrms ( memberId , tokenV3 ) ;
140
+ && ! srmsLoading ) getSrms ( handle , tokenV3 ) ;
142
141
143
142
if ( now - statsTimestamp > CACHE_MAX_AGE
144
143
&& ! statsLoading ) getMemberStats ( handle , tokenV3 ) ;
@@ -309,7 +308,6 @@ function mapStateToProps(state, props) {
309
308
const communities = state . tcCommunities . list ;
310
309
311
310
const userHandle = _ . get ( state . auth , 'user.handle' ) ;
312
- const userId = _ . get ( state . auth , 'user.userId' ) ;
313
311
const member = state . members [ userHandle ] || { } ;
314
312
const achievements = member . achievements || { } ;
315
313
const finances = member . finances || { } ;
@@ -340,7 +338,6 @@ function mapStateToProps(state, props) {
340
338
financesLoading : Boolean ( finances . loadingUuid ) ,
341
339
financesTimestamp : finances . timestamp ,
342
340
handle : userHandle ,
343
- memberId : userId ,
344
341
profile : state . auth . profile ,
345
342
showChallengeFilter : dash . showChallengeFilter ,
346
343
showEarnings : dash . showEarnings ,
@@ -398,15 +395,14 @@ function mapDispatchToProps(dispatch) {
398
395
dispatch ( members . getStatsInit ( handle , uuid ) ) ;
399
396
dispatch ( members . getStatsDone ( handle , uuid , tokenV3 ) ) ;
400
397
} ,
401
- getSrms : ( memberId , tokenV3 ) => {
398
+ getSrms : ( handle , tokenV3 ) => {
402
399
const uuid = shortId ( ) ;
403
400
const a = challengeListingActions . challengeListing ;
404
401
dispatch ( a . getSrmsInit ( uuid ) ) ;
405
- dispatch ( a . getSrmsDone ( uuid , memberId , {
406
- status : 'Draft' ,
407
- sortBy : 'startDate' ,
408
- page : 1 ,
409
- perPage : 3 ,
402
+ dispatch ( a . getSrmsDone ( uuid , handle , {
403
+ filter : 'status=future' ,
404
+ orderBy : 'registrationStartAt' ,
405
+ limit : 3 ,
410
406
} , tokenV3 ) ) ;
411
407
} ,
412
408
getTopcoderBlogFeed : ( ) => {
0 commit comments