@@ -162,7 +162,6 @@ export class DashboardPageContainer extends React.Component {
162
162
communityStats,
163
163
finances,
164
164
financesLoading,
165
- handle,
166
165
selectChallengeDetailsTab,
167
166
setChallengeListingFilter,
168
167
showChallengeFilter,
@@ -201,7 +200,7 @@ export class DashboardPageContainer extends React.Component {
201
200
achievementsLoading = { achievementsLoading }
202
201
announcementPreviewId = { announcementPreviewId }
203
202
challengeFilter = { challengeFilter }
204
- challenges = { activeChallenges . filter ( x => x . users [ handle ] ) }
203
+ challenges = { activeChallenges }
205
204
challengesLoading = { activeChallengesLoading }
206
205
communities = { communities }
207
206
communitiesLoading = { communitiesLoading }
@@ -238,7 +237,6 @@ DashboardPageContainer.defaultProps = {
238
237
achievementsTimestamp : 0 ,
239
238
finances : [ ] ,
240
239
financesTimestamp : 0 ,
241
- handle : '' ,
242
240
profile : null ,
243
241
showEarnings :
244
242
isomorphy . isClientSide ( ) ? cookies . get ( 'showEarningsInDashboard' ) !== 'false' : true ,
@@ -275,7 +273,6 @@ DashboardPageContainer.propTypes = {
275
273
getMemberStats : PT . func . isRequired , // eslint-disable-line react/no-unused-prop-types
276
274
getSrms : PT . func . isRequired , // eslint-disable-line react/no-unused-prop-types
277
275
getTopcoderBlogFeed : PT . func . isRequired , // eslint-disable-line react/no-unused-prop-types
278
- handle : PT . string ,
279
276
profile : PT . shape ( ) , // eslint-disable-line react/no-unused-prop-types
280
277
selectChallengeDetailsTab : PT . func . isRequired ,
281
278
setChallengeListingFilter : PT . func . isRequired ,
@@ -321,7 +318,8 @@ function mapStateToProps(state, props) {
321
318
achievements : achievements . data ,
322
319
achievementsLoading : Boolean ( achievements . loadingUuid ) ,
323
320
achievementsTimestamp : achievements . timestamp ,
324
- activeChallenges : state . challengeListing . challenges ,
321
+ activeChallenges : ! _ . isEmpty ( state . challengeListing . challenges [ BUCKETS . MY ] )
322
+ ? state . challengeListing . challenges [ BUCKETS . MY ] : [ ] ,
325
323
activeChallengesLoading :
326
324
Boolean ( state . challengeListing . loadingActiveChallengesUUID ) ,
327
325
activeChallengesTimestamp :
0 commit comments