File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ export default function ChallengeHeader(props) {
68
68
legacy,
69
69
prizeSets,
70
70
reliabilityBonus,
71
- userDetails,
72
71
numOfRegistrants,
73
72
numOfSubmissions,
74
73
appealsEndDate,
@@ -124,7 +123,7 @@ export default function ChallengeHeader(props) {
124
123
* iterate through all their submissions and ensure that all of them
125
124
* are Deleted
126
125
*/
127
- const hasSubmissions = userDetails && ( userDetails . submissions || [ ] ) . reduce ( ( acc , submission ) => acc || submission . status !== 'Deleted' , false ) ;
126
+ const hasSubmissions = ! _ . isEmpty ( mySubmissions ) ;
128
127
129
128
let nextPhase = allPhases . filter ( p => p . name !== 'Registration' && p . isOpen ) . sort ( ( a , b ) => moment ( a . scheduledEndDate ) . diff ( b . scheduledEndDate ) ) [ 0 ] ;
130
129
if ( hasRegistered && allPhases [ 0 ] && allPhases [ 0 ] . name === 'Registration' ) {
You can’t perform that action at this time.
0 commit comments