Skip to content

Commit ec9cbfd

Browse files
committed
fix: #5082 blank page on clicking challenges tab from stats history page
1 parent 032c5cf commit ec9cbfd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shared/components/ChallengeTile/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Challenge tile.
33
*/
44
/* eslint-env browser */
5+
import _ from 'lodash';
56
import React from 'react';
67
import PT from 'prop-types';
78
import { Link } from 'react-router-dom';
@@ -315,7 +316,7 @@ class ChallengeTile extends React.Component {
315316
Role:  
316317
</span>
317318
<span>
318-
{ listRoles(challenge.userDetails.roles) }
319+
{ listRoles(_.get(challenge, 'userDetails.roles')) }
319320
</span>
320321
</span>
321322
) }

0 commit comments

Comments
 (0)