Skip to content

Commit beb313d

Browse files
authored
Merge pull request #1194 from Vips19/resolve-#1182
fix issue #1182 #1192
2 parents d018e13 + cfa8d35 commit beb313d

File tree

1 file changed

+1
-1
lines changed
  • src/components/ChallengeEditor/Copilot-Field

1 file changed

+1
-1
lines changed

src/components/ChallengeEditor/Copilot-Field/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const CopilotField = ({ copilots, challenge, onUpdateOthers, readOnly }) => {
3535
}
3636
</div>
3737
</div>
38-
{!readOnly && challenge.submitTriggered && parseInt(copilotFee.prizes[0].value) > 0 && !selectedCopilot && (
38+
{!readOnly && challenge.submitTriggered && copilotFee && parseInt(copilotFee.prizes[0].value) > 0 && !selectedCopilot && (
3939
<div className={styles.row}>
4040
<div className={cn(styles.field, styles.col1)} />
4141
<div className={cn(styles.field, styles.col2, styles.error)}>

0 commit comments

Comments
 (0)