Valtio and new tab menu
This commit is contained in:
4
API.js
4
API.js
@@ -59,7 +59,7 @@ let getProfileFromCache = async (id, refresh=false) => {
|
||||
return userNameCache[id];
|
||||
if (working_on[id] && !refresh)
|
||||
return working_on[id];
|
||||
console.log(id, "not in cache, getting...")
|
||||
//console.log(id, "not in cache, getting...")
|
||||
working_on[id] = getCall("/user/" + id)
|
||||
return working_on[id];
|
||||
}
|
||||
@@ -67,7 +67,7 @@ let getProfileFromCache = async (id, refresh=false) => {
|
||||
const API = {
|
||||
isLoggedIn: async () => {
|
||||
return getCall().then((data) => {
|
||||
console.log("isLoggedIn", data)
|
||||
//console.log("isLoggedIn", data)
|
||||
if (data && data.status && data.status === 'ok') {
|
||||
CurrentUserId = data.userInfo._id;
|
||||
CurrentProfile = data.profileInfo._id;
|
||||
|
||||
Reference in New Issue
Block a user