From b20f96de1d542db13deb53f01a88a1c1e73f2123 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 12 Apr 2019 00:14:19 +0300 Subject: Fix Users initialisation --- vnext/src/components/Users.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vnext') diff --git a/vnext/src/components/Users.js b/vnext/src/components/Users.js index 522aaa30..ea3784b9 100644 --- a/vnext/src/components/Users.js +++ b/vnext/src/components/Users.js @@ -15,9 +15,9 @@ export function Readers({ user, ...rest }) { } function Users(props) { - const [user, setUser] = useState(props.user); + const [user, setUser] = useState({ uid: 0, uname: props.user }); return ( - +
{ user[props.prop] && -- cgit v1.2.3