File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ export default function SideBar({
36
36
const scorecardURL = `${ config . URL . ONLINE_REVIEW } /review/actions/ViewScorecard?scid=` ;
37
37
const faqURL = config . URL . INFO . DESIGN_CHALLENGE_SUBMISSION ;
38
38
let submissionLimitDisplay = 'Unlimited' ;
39
- const submissionLimit = _ . find ( metadata , { type : 'submissionLimit' } ) ;
39
+ const submissionLimit = _ . find ( metadata , { name : 'submissionLimit' } ) ;
40
40
const fileTypes = _ . find ( metadata , { name : 'fileTypes' } ) ;
41
41
42
42
if ( submissionLimit ) {
43
43
if ( submissionLimit . value === 1 ) {
44
44
submissionLimitDisplay = '1 submission' ;
45
- } else if ( submissionLimit > 1 ) {
45
+ } else if ( submissionLimit . value > 1 ) {
46
46
submissionLimitDisplay = `${ submissionLimit . value } submissions` ;
47
47
}
48
48
}
You can’t perform that action at this time.
0 commit comments