mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #2314 from chen-robert/gh2263-negative-loves
Fix gh-2263: Negative loves
This commit is contained in:
commit
84dc08b5cc
1 changed files with 2 additions and 2 deletions
|
@ -16,14 +16,14 @@ const Stats = props => (
|
|||
key="loves"
|
||||
onClick={props.onLoveClicked}
|
||||
>
|
||||
{approx(props.loveCount, {decimal: false})}
|
||||
{approx(Math.max(0, props.loveCount), {decimal: false})}
|
||||
</div>
|
||||
<div
|
||||
className={classNames('project-favorites', {favorited: props.faved})}
|
||||
key="favorites"
|
||||
onClick={props.onFavoriteClicked}
|
||||
>
|
||||
{approx(props.favoriteCount, {decimal: false})}
|
||||
{approx(Math.max(0, props.favoriteCount), {decimal: false})}
|
||||
</div>
|
||||
<div
|
||||
className="project-remixes"
|
||||
|
|
Loading…
Reference in a new issue