Skip to content

Commit 41e96dd

Browse files
committed
GAME-63
1 parent d97323f commit 41e96dd

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

config/custom-environment-variables.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,6 @@ module.exports = {
116116
GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY: 'GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY',
117117
GAMIFICATION: {
118118
ORG_ID: 'GAMIFICATION_ORG_ID',
119+
ENABLE_BADGE_UI: 'GAMIFICATION_ENABLE_BADGE_UI',
119120
},
120121
};

config/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,5 +454,6 @@ module.exports = {
454454
PLATFORM_SITE_URL: 'https://platform.topcoder-dev.com',
455455
GAMIFICATION: {
456456
ORG_ID: '6052dd9b-ea80-494b-b258-edd1331e27a3',
457+
ENABLE_BADGE_UI: true,
457458
},
458459
};

src/shared/components/ProfilePage/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import _ from 'lodash';
77
import React from 'react';
88
import PT from 'prop-types';
9-
import { isomorphy } from 'topcoder-react-utils';
9+
import { isomorphy, config } from 'topcoder-react-utils';
1010

1111
import { dataMap } from './ExternalLink';
1212
import Header from './Header';
@@ -199,7 +199,7 @@ class ProfilePage extends React.Component {
199199
</div>
200200
</div>
201201
{
202-
(badges && (badges.rows || [])).length ? (
202+
(config.GAMIFICATION.ENABLE_BADGE_UI && badges && (badges.rows || [])).length ? (
203203
<Awards badges={badges.rows} />
204204
) : null
205205
}

0 commit comments

Comments
 (0)