aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-15 12:20:47 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit6f4926088b108b1f6a44ae90ba831a9911a25a8e (patch)
tree03649f5d32e616258859cab6d1a0efc6a977d0fb
parentd46d48065744823b5a0fbc6d8bc0860395355cd8 (diff)
Do not show empty friends link
-rw-r--r--vnext/src/App.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/vnext/src/App.js b/vnext/src/App.js
index e13a5f74..683e310a 100644
--- a/vnext/src/App.js
+++ b/vnext/src/App.js
@@ -199,7 +199,10 @@ export default class App extends React.Component {
<hr />
<div id="ustats">
<ul>
- <li><Link to={`/${user.uname}/friends`}>I read: {user.read ? user.read.length : 0}</Link></li>
+ {
+ user.read &&
+ <li><Link to={`/${user.uname}/friends`}>I read: { user.read.length }</Link></li>
+ }
<li><Link to={`/${user.uname}/readers`}>My readers: {user.readers? user.readers.length : 0}</Link></li>
{
user.statsMyBL &&