From 30ae6b55d2fb4b40c1b22fdbca8a5b34c55c9146 Mon Sep 17 00:00:00 2001 From: analuizaff Date: Tue, 15 Mar 2022 19:05:47 -0300 Subject: [PATCH] removing internet connection verificatrion --- src/App.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/App.js b/src/App.js index 6600f32..2a81ae2 100644 --- a/src/App.js +++ b/src/App.js @@ -43,7 +43,6 @@ export default function App() { } }, [pluviometerStation]); - // console.log(pluviometerStation); const restoreUser = async () => { const storageUser = await authStorage.getUser(); @@ -52,7 +51,7 @@ export default function App() { global.location = await getLocation(); }; - if (!isReady && netInfo.isInternetReachable) { + if (!isReady) { return ( console.log(e)} /> ); - } else if (netInfo.isInternetReachable) { + } else { if (global.formsSockets === undefined) global.formsSockets = useFiltering(global.location || global.defaultLocation); @@ -83,5 +82,5 @@ export default function App() { ); - } else return ; + } }