Updating useeffect

This commit is contained in:
aeroreyna
2022-11-21 15:15:28 -05:00
parent a313822c27
commit 1972aa7464
6 changed files with 27 additions and 15 deletions

View File

@@ -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 () => {