diff options
author | Vitaly Takmazov | 2019-07-26 15:09:25 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:55 +0300 |
commit | f6a7e2d7d9dbcee761149aa0ea42a8b3277a46c9 (patch) | |
tree | 73ab8c7716bd0b402bf0c94098954dd937a768a9 /vnext/src/ui/UserInfo.js | |
parent | 050ac675c030b9de6abde874d63c54aaaa80d0d6 (diff) |
Fix hooks deps
Diffstat (limited to 'vnext/src/ui/UserInfo.js')
-rw-r--r-- | vnext/src/ui/UserInfo.js | 4 |
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> |