@@ -64,7 +64,6 @@ import { getResourceRoleByName } from '../../util/tc'
64
64
import { isBetaMode } from '../../util/cookie'
65
65
import MilestoneField from './Milestone-Field'
66
66
import DiscussionField from './Discussion-Field'
67
- import CheckpointPrizesField from './CheckpointPrizes-Field'
68
67
69
68
const theme = {
70
69
container : styles . modalContainer
@@ -953,7 +952,7 @@ class ChallengeEditor extends Component {
953
952
async createNewChallenge ( ) {
954
953
if ( ! this . props . isNew ) return
955
954
const { metadata, createChallenge, projectDetail } = this . props
956
- const { challenge : { name, trackId, typeId, milestoneId, roundType , challengeType, metadata : challengeMetadata } } = this . state
955
+ const { challenge : { name, trackId, typeId, milestoneId, challengeType, metadata : challengeMetadata } } = this . state
957
956
const { timelineTemplates } = metadata
958
957
const isDesignChallenge = trackId === DES_TRACK_ID
959
958
const isDataScience = trackId === DS_TRACK_ID
@@ -1568,7 +1567,6 @@ class ChallengeEditor extends Component {
1568
1567
const isMM = challenge . typeId === MARATHON_TYPE_ID
1569
1568
const isChallengeType = challenge . typeId === CHALLENGE_TYPE_ID
1570
1569
const showRoundType = isDesignChallenge && isChallengeType
1571
- const showCheckpointPrizes = challenge . timelineTemplateId === MULTI_ROUND_CHALLENGE_TEMPLATE_ID
1572
1570
const showDashBoard = ( challenge . trackId === DS_TRACK_ID && isChallengeType ) || ( isDevChallenge && isMM )
1573
1571
const useDashboardData = _ . find ( challenge . metadata , { name : 'show_data_dashboard' } )
1574
1572
const useDashboard = useDashboardData ? useDashboardData . value : true
@@ -1780,11 +1778,6 @@ class ChallengeEditor extends Component {
1780
1778
removeAttachment = { removeAttachment }
1781
1779
/> }
1782
1780
< ChallengePrizesField challenge = { challenge } onUpdateOthers = { this . onUpdateOthers } />
1783
- {
1784
- showCheckpointPrizes && (
1785
- < CheckpointPrizesField onUpdateOthers = { this . onUpdateOthers } challenge = { challenge } />
1786
- )
1787
- }
1788
1781
< CopilotFeeField challenge = { challenge } onUpdateOthers = { this . onUpdateOthers } />
1789
1782
< ChallengeTotalField challenge = { challenge } />
1790
1783
</ div >
0 commit comments