aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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] &&