@@ -243,9 +243,8 @@ class ChallengeDetailPageContainer extends React.Component {
243
243
reloadChallengeDetails ( nextProps . auth , challengeId ) ;
244
244
}
245
245
246
- const { legacy } = nextProps . challenge ;
247
- const track = legacy ? legacy . track : nextProps . challenge . track ;
248
- if ( track && track . toLowerCase ( ) !== 'design' && thriveArticles . length === 0 ) {
246
+ const { track } = nextProps . challenge ;
247
+ if ( track === COMPETITION_TRACKS . DESIGN && thriveArticles . length === 0 ) {
249
248
// filter all tags with value 'Other'
250
249
const tags = _ . filter ( nextProps . challenge . tags , tag => tag !== 'Other' ) ;
251
250
if ( tags . length > 0 ) {
@@ -845,7 +844,7 @@ const mapDispatchToProps = (dispatch) => {
845
844
dispatch ( a . getDetailsDone ( challengeId , tokens . tokenV3 , tokens . tokenV2 ) )
846
845
. then ( ( res ) => {
847
846
const ch = res . payload ;
848
- if ( ch . legacy . track === COMPETITION_TRACKS . DESIGN ) {
847
+ if ( ch . track === COMPETITION_TRACKS . DESIGN ) {
849
848
const p = ch . phases || [ ]
850
849
. filter ( x => x . name === 'Checkpoint Review' ) ;
851
850
if ( p . length && ! p [ 0 ] . isOpen ) {
@@ -869,7 +868,7 @@ const mapDispatchToProps = (dispatch) => {
869
868
const a = actions . challenge ;
870
869
dispatch ( a . getDetailsDone ( challengeId , tokens . tokenV3 , tokens . tokenV2 ) )
871
870
. then ( ( challengeDetails ) => {
872
- if ( challengeDetails . legacy . track === COMPETITION_TRACKS . DESIGN ) {
871
+ if ( challengeDetails . track === COMPETITION_TRACKS . DESIGN ) {
873
872
const p = challengeDetails . phases || [ ]
874
873
. filter ( x => x . name === 'Checkpoint Review' ) ;
875
874
if ( p . length && ! p [ 0 ] . isOpen ) {
0 commit comments