@@ -61,7 +61,6 @@ export default function ChallengeStatus(props) {
61
61
newChallengeDetails,
62
62
selectChallengeDetailsTab,
63
63
openChallengesInNewTabs,
64
- userId,
65
64
isLoggedIn,
66
65
} = props ;
67
66
@@ -242,9 +241,13 @@ export default function ChallengeStatus(props) {
242
241
if ( statusPhase ) phaseMessage = statusPhase . name ;
243
242
else if ( status === 'Draft' ) phaseMessage = DRAFT_MSG ;
244
243
245
- const users = challenge . users || { } ;
244
+ const showRegisterInfo = false ;
246
245
247
- const showRegisterInfo = ( challenge . currentPhaseNames || [ ] ) . includes ( 'Registration' ) && ! users [ userId ] ;
246
+ // NOTE: the commented code below can be used to turn the "Register" button
247
+ // back on from the challenge listing page, if we ever want that again.
248
+ // This was turned off (set to always false above) via a change request in TOP-1549
249
+ // const showRegisterInfo = (challenge.currentPhaseNames || [])
250
+ // .includes('Registration') && !users[userId];
248
251
249
252
return (
250
253
< div styleName = { showRegisterInfo ? 'challenge-progress with-register-button' : 'challenge-progress' } >
@@ -316,7 +319,6 @@ ChallengeStatus.defaultProps = {
316
319
detailLink : '' ,
317
320
openChallengesInNewTabs : false ,
318
321
className : '' ,
319
- userId : '' ,
320
322
} ;
321
323
322
324
ChallengeStatus . propTypes = {
@@ -327,6 +329,5 @@ ChallengeStatus.propTypes = {
327
329
openChallengesInNewTabs : PT . bool , // eslint-disable-line react/no-unused-prop-types
328
330
selectChallengeDetailsTab : PT . func . isRequired ,
329
331
className : PT . string ,
330
- userId : PT . number ,
331
332
isLoggedIn : PT . bool . isRequired ,
332
333
} ;
0 commit comments