aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/UserInfo.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/UserInfo.js')
-rw-r--r--vnext/src/components/UserInfo.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/UserInfo.js b/vnext/src/components/UserInfo.js
index 835bbace..a65bd993 100644
--- a/vnext/src/components/UserInfo.js
+++ b/vnext/src/components/UserInfo.js
@@ -71,7 +71,7 @@ export function UserLink(props) {
useEffect(() => {
setUser(props.user);
isMounted = true;
- if (!user.uid && user.uri) {
+ if (!user.uid && !user.uname && user.uri) {
fetchUserUri(user.uri).then(response => {
if (isMounted) {
setUser(response.data);
@@ -81,7 +81,7 @@ export function UserLink(props) {
return () => {
isMounted = false;
};
- }, [props.user, user.uid, user.uri]);
+ }, [props.user]);
return (
user.uid ?
<Link key={user.uid} to={`/${user.uname}/`} className="info-avatar"><img src={user.avatar}/>{user.uname}</Link>