aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/UserInfo.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-07-26 15:09:25 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commitf6a7e2d7d9dbcee761149aa0ea42a8b3277a46c9 (patch)
tree73ab8c7716bd0b402bf0c94098954dd937a768a9 /vnext/src/ui/UserInfo.js
parent050ac675c030b9de6abde874d63c54aaaa80d0d6 (diff)
Fix hooks deps
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>