Updating useeffect
This commit is contained in:
@@ -36,7 +36,8 @@ let UserName = ({ profileid, hideIcon }) => {
|
||||
let p = await API.getUserProfile(profileid).catch(() => { return {} });
|
||||
if (subscribed)
|
||||
setProfile(p);
|
||||
storeName(profileid, p)
|
||||
storeName(profileid, p);
|
||||
console.log("Fetching Name:" + p?.profile?.firstName);
|
||||
}
|
||||
getData();
|
||||
return () => {
|
||||
|
||||
Reference in New Issue
Block a user