fix: remove debug

This commit is contained in:
Derrick Hammer 2023-10-12 12:32:18 -04:00
parent 8493ac1e63
commit 40ea3f9fc0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 4 deletions

View File

@ -125,10 +125,9 @@ const LumeProvider = ({ children }) => {
loginComplete().then(() => isMounted.current && setIsLoggedIn(true));
init().then(() => isMounted.current && setReady(true));
const subDone = networkRegistry.subscribeToUpdates(() => {
console.log("subscribeToUpdates triggered");
fetchAndUpdateNetworks();
});
const subDone = networkRegistry.subscribeToUpdates(() =>
fetchAndUpdateNetworks(),
);
return () => {
isMounted.current = false; // Track component unmounting