diff options
author | Vitaly Takmazov | 2019-04-12 00:14:19 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:54 +0300 |
commit | b20f96de1d542db13deb53f01a88a1c1e73f2123 (patch) | |
tree | 54fb81992e39d58ef52359ed82a3f83b3c2d578c /vnext/src/components | |
parent | 2812569d3964a9493ee7716e952e4aa59a8b21b2 (diff) |
Fix Users initialisation
Diffstat (limited to 'vnext/src/components')
-rw-r--r-- | vnext/src/components/Users.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 ( - <UserInfo user={user} onUpdate={setUser}> + <UserInfo user={user.uname} onUpdate={setUser}> <div style={{ display: 'flex', flexWrap: 'wrap', flexDirection: 'row' }}> { user[props.prop] && |