We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cabfd8e + abc829c commit 24df4c3Copy full SHA for 24df4c3
src/components/ChallengeEditor/index.js
@@ -573,7 +573,7 @@ class ChallengeEditor extends Component {
573
574
isValidChallengePrizes () {
575
const challengePrizes = this.state.challenge.prizeSets.find(p => p.type === PRIZE_SETS_TYPE.CHALLENGE_PRIZES)
576
- if (challengePrizes.prizes.length === 0) {
+ if (!challengePrizes || !challengePrizes.prizes || challengePrizes.prizes.length === 0) {
577
return false
578
}
579
0 commit comments