From 585c8829b4571ed6c1f593552cd73c1485dc6462 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 8 Apr 2019 15:42:37 +0300 Subject: Fix React warning --- vnext/src/components/UserInfo.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'vnext/src/components') diff --git a/vnext/src/components/UserInfo.js b/vnext/src/components/UserInfo.js index 0a13f050..90cbb5e0 100644 --- a/vnext/src/components/UserInfo.js +++ b/vnext/src/components/UserInfo.js @@ -62,9 +62,12 @@ export default function UserInfo(props) { } function Summary({ user }) { - let read = user.read && I read: {user.read.length}; - let readers = user.readers && My readers: {user.readers.length} - let mybl = user.statsMyBL && My blacklist: {user.statsMyBL} + const readUrl = `/${user.uname}/friends`; + const readersUrl = `/${user.uname}/readers`; + const blUrl = `/${user.uname}/bl`; + let read = user.read && I read: {user.read.length}; + let readers = user.readers && My readers: {user.readers.length} + let mybl = user.statsMyBL && My blacklist: {user.statsMyBL} let presentItems = [read, readers, mybl].filter(Boolean); return (
-- cgit v1.2.3