diff --git a/src/components/ChallengeEditor/ChallengePrizes-Field/index.js b/src/components/ChallengeEditor/ChallengePrizes-Field/index.js index ed33c0cd..77078ed1 100644 --- a/src/components/ChallengeEditor/ChallengePrizes-Field/index.js +++ b/src/components/ChallengeEditor/ChallengePrizes-Field/index.js @@ -59,12 +59,13 @@ class ChallengePrizesField extends Component { renderPrizes () { const { currentPrizeIndex } = this.state - const { readOnly } = this.props + const { readOnly, challenge } = this.props + const isTask = _.get(challenge, 'task.isTask', false) return _.map(this.getChallengePrize().prizes, (prize, index, { length }) => (
- +
{readOnly ? ( ${prize.value} @@ -96,7 +97,8 @@ class ChallengePrizesField extends Component { } render () { - const { readOnly } = this.props + const { readOnly, challenge } = this.props + const isTask = _.get(challenge, 'task.isTask', false) return (
@@ -105,7 +107,7 @@ class ChallengePrizesField extends Component {
{ this.renderPrizes() } - {!readOnly && (
+ {!readOnly && !isTask && (
)}