Merge pull request #16479 from lgrzybowski/fix/change_NA_to_blank_when_no_estimation

fix(map): Removed NA text for challenge without time estimat
pull/16566/head
Berkeley Martinez 2018-01-23 18:59:30 -08:00 committed by GitHub
commit 20a3363d39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -61,7 +61,9 @@ export class Block extends PureComponent {
<span>
{ title }
</span>
<span className={ `${ns}-block-time` }>({ time })</span>
{
time && <span className={ `${ns}-block-time` }>({ time })</span>
}
</div>
);
}

View File

@ -37,7 +37,7 @@
},
"time": {
"type": "string",
"required": true
"required": false
}
},
"validations": [],

View File

@ -46,7 +46,7 @@ Observable.combineLatest(
const isComingSoon = !!challengeSpec.isComingSoon;
const fileName = challengeSpec.fileName;
const helpRoom = challengeSpec.helpRoom || 'Help';
const time = challengeSpec.time || 'N/A';
const time = challengeSpec.time;
const isLocked = !!challengeSpec.isLocked;
const message = challengeSpec.message;
const required = challengeSpec.required || [];