Merge pull request #2314 from chen-robert/gh2263-negative-loves

Fix gh-2263: Negative loves
This commit is contained in:
Benjamin Wheeler 2018-11-28 19:25:01 -08:00 committed by GitHub
commit 84dc08b5cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"