File tree 2 files changed +3
-1
lines changed 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export default function ChallengeHeader(props) {
95
95
* iterate through all their submissions and ensure that all of them
96
96
* are Deleted
97
97
*/
98
- const hasSubmissions = userDetails && userDetails . submissions . reduce (
98
+ const hasSubmissions = userDetails && ( userDetails . submissions || [ ] ) . reduce (
99
99
( acc , submission ) => acc || submission . status !== 'Deleted' , false ) ;
100
100
101
101
const nextPhase =
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ function onGetDetailsInit(state, action) {
49
49
function onGetDetailsDone ( state , action ) {
50
50
if ( action . error ) {
51
51
logger . error ( 'Failed to get challenge details!' , action . payload ) ;
52
+ fireErrorMessage ( 'ERROR: Failed to load the challenge' ,
53
+ 'Please, try again a bit later' ) ;
52
54
return {
53
55
...state ,
54
56
fetchChallengeFailure : action . error ,
You can’t perform that action at this time.
0 commit comments