File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/shared/components/challenge-detail/Registrants Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -239,16 +239,18 @@ export default class Registrants extends React.Component {
239
239
onSortChange,
240
240
} = this . props ;
241
241
const {
242
- prizes ,
242
+ prizeSets ,
243
243
legacy,
244
244
} = challenge ;
245
245
const { track } = legacy ;
246
246
const { sortedRegistrants } = this . state ;
247
247
const { field, sort } = this . getRegistrantsSortParam ( ) ;
248
248
const revertSort = ( sort === 'desc' ) ? 'asc' : 'desc' ;
249
249
const isDesign = track . toLowerCase ( ) === 'design' ;
250
- const isF2F = challenge . subTrack . indexOf ( 'FIRST_2_FINISH' ) > - 1 ;
251
- const isBugHunt = challenge . subTrack . indexOf ( 'BUG_HUNT' ) > - 1 ;
250
+ const isF2F = track . indexOf ( 'FIRST_2_FINISH' ) > - 1 ;
251
+ const isBugHunt = track . indexOf ( 'BUG_HUNT' ) > - 1 ;
252
+ const placementPrizes = _ . find ( prizeSets , { type : 'placement' } ) ;
253
+ const { prizes } = placementPrizes || [ ] ;
252
254
253
255
const checkpoints = challenge . checkpoints || [ ] ;
254
256
@@ -491,7 +493,7 @@ Registrants.propTypes = {
491
493
track : PT . any ,
492
494
} ) ,
493
495
subTrack : PT . any ,
494
- prizes : PT . arrayOf ( PT . number ) . isRequired ,
496
+ prizeSets : PT . arrayOf ( PT . shape ( ) ) . isRequired ,
495
497
registrants : PT . arrayOf ( PT . shape ( ) ) . isRequired ,
496
498
round1Introduction : PT . string ,
497
499
round2Introduction : PT . string ,
You can’t perform that action at this time.
0 commit comments