File tree 1 file changed +4
-2
lines changed
src/shared/containers/challenge-listing/Listing
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,12 @@ export class ListingContainer extends React.Component {
69
69
logger . error ( 'Attempt to mount multiple instances of ChallengeListingPageContainer at the same time!' ) ;
70
70
} else mounted = true ;
71
71
72
- this . loadChallenges ( ) ;
72
+ if ( BUCKETS . PAST !== activeBucket ) this . loadChallenges ( ) ;
73
73
}
74
74
75
75
componentDidUpdate ( prevProps ) {
76
76
const {
77
+ activeBucket,
77
78
auth,
78
79
dropChallenges,
79
80
getCommunitiesList,
@@ -98,7 +99,8 @@ export class ListingContainer extends React.Component {
98
99
} ) ;
99
100
}
100
101
101
- if ( ! loadingActiveChallengesUUID && ! _ . isEmpty ( meta ) && ! allActiveChallengesLoaded ) {
102
+ if ( ! loadingActiveChallengesUUID && ! _ . isEmpty ( meta ) && ! allActiveChallengesLoaded
103
+ && BUCKETS . PAST !== activeBucket ) {
102
104
getRestActiveChallenges ( auth . tokenV3 ) ;
103
105
}
104
106
}
You can’t perform that action at this time.
0 commit comments