We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c71e7af commit ebd9571Copy full SHA for ebd9571
src/shared/components/challenge-detail/Specification/index.jsx
@@ -52,7 +52,7 @@ export default function ChallengeDetailsView(props) {
52
53
const getScoreCardByPhase = (phaseName) => {
54
const phase = phases.find(item => item.name === phaseName);
55
- const scoreCardConstraint = phase && phase.constraints.find(item => item.name === 'Scorecard');
+ const scoreCardConstraint = phase && phase.constraints && phase.constraints.find(item => item.name === 'Scorecard');
56
return scoreCardConstraint ? scoreCardConstraint.value : '';
57
}
58
0 commit comments