Skip to content

Commit 10f66b5

Browse files
committed
fix lint erros
1 parent b09caf5 commit 10f66b5

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

config/custom-environment-variables.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ module.exports = {
115115
},
116116
GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY: 'GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY',
117117
GAMIFICATION: {
118-
ORG_ID: 'GAMIFICATION_ORG_ID'
119-
}
118+
ORG_ID: 'GAMIFICATION_ORG_ID',
119+
},
120120
};

config/default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,6 @@ module.exports = {
453453
},
454454
PLATFORM_SITE_URL: 'https://platform.topcoder-dev.com',
455455
GAMIFICATION: {
456-
ORG_ID: ''
457-
}
456+
ORG_ID: '',
457+
},
458458
};

src/shared/actions/page/profile.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ async function getGamificationBadgesInit(handle) {
2323
*/
2424
async function getGamificationBadgesDone(handle) {
2525
try {
26-
const memberInfo = await fetch(`${config.API.V5}/members/${handle}`)
27-
.then(response => response.json());
28-
const badges = await fetch(`${config.API.V5}/gamification/badges/assigned/${memberInfo.userId}?organization_id=${config.GAMIFICATION.ORG_ID}`)
29-
.then(response => response.json());
26+
const memberInfo = await fetch(`${config.API.V5}/members/${handle}`)
27+
.then(response => response.json());
28+
const badges = await fetch(`${config.API.V5}/gamification/badges/assigned/${memberInfo.userId}?organization_id=${config.GAMIFICATION.ORG_ID}`)
29+
.then(response => response.json());
3030

31-
return {
32-
handle,
33-
badges,
34-
};
31+
return {
32+
handle,
33+
badges,
34+
};
3535
} catch (error) {
3636
return {
3737
handle,
3838
error,
39-
}
39+
};
4040
}
4141
}
4242

0 commit comments

Comments
 (0)