aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-12 00:14:19 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commitb20f96de1d542db13deb53f01a88a1c1e73f2123 (patch)
tree54fb81992e39d58ef52359ed82a3f83b3c2d578c
parent2812569d3964a9493ee7716e952e4aa59a8b21b2 (diff)
Fix Users initialisation
-rw-r--r--vnext/src/components/Users.js4
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] &&