File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
src/shared/components/ProfilePage Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff 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} ;
Original file line number Diff line number Diff 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} ;
Original file line number Diff line number Diff line change 66import _ from 'lodash' ;
77import React from 'react' ;
88import PT from 'prop-types' ;
9- import { isomorphy } from 'topcoder-react-utils' ;
9+ import { isomorphy , config } from 'topcoder-react-utils' ;
1010
1111import { dataMap } from './ExternalLink' ;
1212import 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 }
You can’t perform that action at this time.
0 commit comments