Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit c3495a7

Browse files
Merge pull request #119 from topcoder-platform/integration
Deploying sub community list on challenge page
2 parents a3850e3 + 73732cc commit c3495a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/services/lookup.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ async function doGetUserGroups() {
3636
}
3737

3838
async function getCommunityList() {
39+
const isLoggedIn = await utils.auth.isLoggedIn();
40+
41+
if (!isLoggedIn) {
42+
return [];
43+
}
44+
3945
const groups = await doGetUserGroups();
4046
let communityListQuery = qs.stringify({ groups: groups.map((g) => g.id) });
4147
communityListQuery = communityListQuery

0 commit comments

Comments
 (0)