Skip to content

Commit

Permalink
fix(map): Removed NA text for challenge without time estimat
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Grzybowski committed Jan 23, 2018
1 parent 5dae72a commit f3d87d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion common/app/Map/Block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
}
Expand Down
2 changes: 1 addition & 1 deletion common/models/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"time": {
"type": "string",
"required": true
"required": false
}
},
"validations": [],
Expand Down
2 changes: 1 addition & 1 deletion seed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || [];
Expand Down

0 comments on commit f3d87d6

Please sign in to comment.