mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -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"
|
key="loves"
|
||||||
onClick={props.onLoveClicked}
|
onClick={props.onLoveClicked}
|
||||||
>
|
>
|
||||||
{approx(props.loveCount, {decimal: false})}
|
{approx(Math.max(0, props.loveCount), {decimal: false})}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className={classNames('project-favorites', {favorited: props.faved})}
|
className={classNames('project-favorites', {favorited: props.faved})}
|
||||||
key="favorites"
|
key="favorites"
|
||||||
onClick={props.onFavoriteClicked}
|
onClick={props.onFavoriteClicked}
|
||||||
>
|
>
|
||||||
{approx(props.favoriteCount, {decimal: false})}
|
{approx(Math.max(0, props.favoriteCount), {decimal: false})}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="project-remixes"
|
className="project-remixes"
|
||||||
|
|
Loading…
Reference in a new issue