aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-11 23:29:04 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commit485af16ce8c8ac546cefa19f31954cff3208e4f5 (patch)
tree5c0aa706baa417df4841bdb8798bac965515cdbc /vnext
parentc5c489d4c626deba07d7cb8a3de9db7ecc60d5f3 (diff)
Fix remote usernames in UserLink
Diffstat (limited to 'vnext')
-rw-r--r--vnext/src/components/Thread.js2
-rw-r--r--vnext/src/components/UserInfo.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js
index ba3fcfa9..1563aa66 100644
--- a/vnext/src/components/Thread.js
+++ b/vnext/src/components/Thread.js
@@ -74,7 +74,7 @@ function Comment({ msg, visitor, active, setActive, postComment }) {
Comment.propTypes = {
msg: MessageType.isRequired,
visitor: UserType.isRequired,
- active: PropTypes.bool.isRequired,
+ active: PropTypes.number.isRequired,
setActive: PropTypes.func.isRequired,
postComment: PropTypes.func.isRequired
};
diff --git a/vnext/src/components/UserInfo.js b/vnext/src/components/UserInfo.js
index c190770b..c8565cbf 100644
--- a/vnext/src/components/UserInfo.js
+++ b/vnext/src/components/UserInfo.js
@@ -87,10 +87,10 @@ export function UserLink(props) {
useEffect(() => {
setUser(props.user);
isMounted = true;
- if (!user.uid && !user.uname && user.uri) {
+ if (!user.uid && user.uri) {
fetchUserUri(user.uri).then(response => {
if (isMounted) {
- setUser(response.data);
+ setUser({...response.data, uid: 66666666});
}
});
}