Skip to content

Commit 20232b0

Browse files
Merge pull request #3587 from gets0ul/issue_3548
Fix for Issue #3548 Pulling up Past Challenges
2 parents f476743 + a31ff62 commit 20232b0

File tree

1 file changed

+4
-2
lines changed
  • src/shared/containers/challenge-listing/Listing

1 file changed

+4
-2
lines changed

src/shared/containers/challenge-listing/Listing/index.jsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ export class ListingContainer extends React.Component {
6969
logger.error('Attempt to mount multiple instances of ChallengeListingPageContainer at the same time!');
7070
} else mounted = true;
7171

72-
this.loadChallenges();
72+
if (BUCKETS.PAST !== activeBucket) this.loadChallenges();
7373
}
7474

7575
componentDidUpdate(prevProps) {
7676
const {
77+
activeBucket,
7778
auth,
7879
dropChallenges,
7980
getCommunitiesList,
@@ -98,7 +99,8 @@ export class ListingContainer extends React.Component {
9899
});
99100
}
100101

101-
if (!loadingActiveChallengesUUID && !_.isEmpty(meta) && !allActiveChallengesLoaded) {
102+
if (!loadingActiveChallengesUUID && !_.isEmpty(meta) && !allActiveChallengesLoaded
103+
&& BUCKETS.PAST !== activeBucket) {
102104
getRestActiveChallenges(auth.tokenV3);
103105
}
104106
}

0 commit comments

Comments
 (0)