aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-15 11:56:21 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit049f4eb108b4680e6f560a612540819ee999a1f0 (patch)
tree07bf0bcc4a744aa12092fc816b77026557f5ffa6 /vnext
parent9057ca1824f0d5ba32478dd1ead9f97a5e44c387 (diff)
Read and readers stats
Diffstat (limited to 'vnext')
-rw-r--r--vnext/src/App.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/App.js b/vnext/src/App.js
index 20ece23e..e13a5f74 100644
--- a/vnext/src/App.js
+++ b/vnext/src/App.js
@@ -199,8 +199,8 @@ export default class App extends React.Component {
<hr />
<div id="ustats">
<ul>
- <li><Link to={`/${user.uname}/friends`}>I read: {user.statsIRead}</Link></li>
- <li><Link to={`/${user.uname}/readers`}>My readers: {user.statsMyReaders}</Link></li>
+ <li><Link to={`/${user.uname}/friends`}>I read: {user.read ? user.read.length : 0}</Link></li>
+ <li><Link to={`/${user.uname}/readers`}>My readers: {user.readers? user.readers.length : 0}</Link></li>
{
user.statsMyBL &&
<li><Link to={`/${user.uname}/bl`}>My blacklist: {user.statsMyBL}</Link></li>