diff options
Diffstat (limited to 'vnext/src/ui/UserInfo.js')
-rw-r--r-- | vnext/src/ui/UserInfo.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vnext/src/ui/UserInfo.js b/vnext/src/ui/UserInfo.js index 5fe244ea..9a663829 100644 --- a/vnext/src/ui/UserInfo.js +++ b/vnext/src/ui/UserInfo.js @@ -100,9 +100,14 @@ export function UserLink(props) { useEffect(() => { isMounted = true; if (userRef.current.uri) { - fetchUserUri(userRef.current.uri).then(response => { + fetchUserUri(userRef.current.uri).then(remote_user => { if (isMounted) { - setUser(response.data); + setUser({ + uid: 0, + uname: remote_user.data.preferredUsername, + avatar: remote_user.data.icon && remote_user.data.icon.url, + uri: userRef.current.uri + }); } }).catch(reason => { // TODO: debug logging |