From 9b7097a772884c9f4a18140d5e049bdabe8dc1e1 Mon Sep 17 00:00:00 2001 From: Robert Chen Date: Wed, 14 Nov 2018 17:06:33 -0800 Subject: [PATCH] Resolved issue #2263 --- src/views/preview/stats.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/preview/stats.jsx b/src/views/preview/stats.jsx index 2fb08b22c..c8fafbfdd 100644 --- a/src/views/preview/stats.jsx +++ b/src/views/preview/stats.jsx @@ -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})}
- {approx(props.favoriteCount, {decimal: false})} + {approx(Math.max(0, props.favoriteCount), {decimal: false})}