File tree 1 file changed +2
-4
lines changed
src/shared/containers/challenge-detail
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ class ChallengeDetailPageContainer extends React.Component {
406
406
}
407
407
408
408
409
- const submissionEnded = status === ' COMPLETED'
409
+ const submissionEnded = status === CHALLENGE_STATUS . COMPLETED
410
410
|| ( ! _ . some ( phases , { name : 'Submission' , isOpen : true } )
411
411
&& ! _ . some ( phases , { name : 'Checkpoint Submission' , isOpen : true } ) ) ;
412
412
@@ -849,9 +849,7 @@ const mapDispatchToProps = (dispatch) => {
849
849
dispatch ( a . fetchCheckpointsDone ( tokens . tokenV2 , ch . legacyId ) ) ;
850
850
} else dispatch ( a . dropCheckpoints ( ) ) ;
851
851
} else dispatch ( a . dropCheckpoints ( ) ) ;
852
- if ( ch . status === 'COMPLETED' ) {
853
- dispatch ( a . loadResultsInit ( challengeId ) ) ;
854
- dispatch ( a . loadResultsDone ( tokens , challengeId , ch . track . toLowerCase ( ) ) ) ;
852
+ if ( ch . status === CHALLENGE_STATUS . COMPLETED ) {
855
853
} else dispatch ( a . dropResults ( ) ) ;
856
854
return res ;
857
855
} ) ;
You can’t perform that action at this time.
0 commit comments