Skip to content

Commit

Permalink
fix for math floor
Browse files Browse the repository at this point in the history
  • Loading branch information
Patryk Wojtyński committed Nov 27, 2015
1 parent db11118 commit b5af586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Kindergarten.jsx
Expand Up @@ -58,7 +58,7 @@ export default class Kindergarten extends React.Component {
</div>
<div className='pure-u-1-4 kindergarten-rating'>
<div className='rating pull-right'>
{Math.floor(this.state.kindergarten.stars)}/10
{Math.floor(this.state.kindergarten.stars || 0)}/10
</div>
</div>
</div>
Expand Down

0 comments on commit b5af586

Please sign in to comment.