aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/UserInfo.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/UserInfo.js')
-rw-r--r--vnext/src/ui/UserInfo.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/ui/UserInfo.js b/vnext/src/ui/UserInfo.js
index faa2ebd6..6ff64931 100644
--- a/vnext/src/ui/UserInfo.js
+++ b/vnext/src/ui/UserInfo.js
@@ -39,7 +39,7 @@ export default function UserInfo(props) {
return () => {
isMounted = false;
};
- }, [onUpdate, user, user.avatar]);
+ }, [onUpdate, user, user.avatar, setUser]);
return (
<>
<div className="userinfo">
@@ -112,7 +112,7 @@ export function UserLink(props) {
return () => {
isMounted = false;
};
- }, [user.uid, user.uri]);
+ }, [user.uid, user.uri, setUser]);
return (
user.uid ?
<Link key={user.uid} to={`/${user.uname}/`} className="info-avatar"><img src={user.avatar} />{user.uname}</Link>