aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Avatar.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/Avatar.js')
-rw-r--r--vnext/src/components/Avatar.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/vnext/src/components/Avatar.js b/vnext/src/components/Avatar.js
index dc2050ce..d4e83b7b 100644
--- a/vnext/src/components/Avatar.js
+++ b/vnext/src/components/Avatar.js
@@ -17,16 +17,10 @@ function Avatar(props) {
useEffect(() => {
setUser(props.user);
isMounted = true;
- if (!user.uid && user.uri) {
- fetchUserUri(user.uri).then(response => {
- if (isMounted) {
- setUser(response.data);
- }
- });
- return () => {
- isMounted = false;
- };
- }
+
+ return () => {
+ isMounted = false;
+ };
}, [props.user, user.uid, user.uri]);
return (
<div className="Avatar" style={props.style}>