Skip to content

Commit ebd9571

Browse files
committed
fix: showing wrong review scorecard link
1 parent c71e7af commit ebd9571

File tree

1 file changed

+1
-1
lines changed
  • src/shared/components/challenge-detail/Specification

1 file changed

+1
-1
lines changed

src/shared/components/challenge-detail/Specification/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function ChallengeDetailsView(props) {
5252

5353
const getScoreCardByPhase = (phaseName) => {
5454
const phase = phases.find(item => item.name === phaseName);
55-
const scoreCardConstraint = phase && phase.constraints.find(item => item.name === 'Scorecard');
55+
const scoreCardConstraint = phase && phase.constraints && phase.constraints.find(item => item.name === 'Scorecard');
5656
return scoreCardConstraint ? scoreCardConstraint.value : '';
5757
}
5858

0 commit comments

Comments
 (0)