File tree 3 files changed +3
-3
lines changed
challenge-listing/Listing
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class SubmissionsPageContainer extends React.Component {
37
37
// check if challenge belongs to any groups
38
38
// and the communitiesList is not up-to-date
39
39
// then will load the communitiesList
40
- if ( ! _ . isEmpty ( groups ) && ! _ . isEmpty ( communitiesList . loadingUuid )
40
+ if ( ! _ . isEmpty ( groups ) && ! communitiesList . loadingUuid
41
41
&& ( Date . now ( ) - communitiesList . timestamp > USER_GROUP_MAXAGE ) ) {
42
42
getCommunitiesList ( auth ) ;
43
43
}
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ class ChallengeDetailPageContainer extends React.Component {
161
161
loadChallengeDetails ( auth , challengeId ) ;
162
162
}
163
163
164
- if ( ! _ . isEmpty ( communitiesList . loadingUuid )
164
+ if ( ! communitiesList . loadingUuid
165
165
&& ( Date . now ( ) - communitiesList . timestamp > USER_GROUP_MAXAGE ) ) {
166
166
getCommunitiesList ( auth ) ;
167
167
}
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export class ListingContainer extends React.Component {
57
57
selectBucket ( queryBucket ) ;
58
58
}
59
59
60
- if ( ! _ . isEmpty ( communitiesList . loadingUuid )
60
+ if ( ! communitiesList . loadingUuid
61
61
&& ( Date . now ( ) - communitiesList . timestamp > USER_GROUP_MAXAGE ) ) {
62
62
getCommunitiesList ( auth ) ;
63
63
}
You can’t perform that action at this time.
0 commit comments