diff --git a/src/App.js b/src/App.js index eb3f2ca..45446ce 100644 --- a/src/App.js +++ b/src/App.js @@ -49,7 +49,7 @@ export default function App() { const storageUser = await authStorage.getUser(); if (storageUser) setUser(storageUser); - global.location = { lat: -9.97111566376452, long: -67.80984283755332 }; //await getLocation(); + global.location = await getLocation(); }; if (!isReady && netInfo.isInternetReachable) { @@ -61,7 +61,7 @@ export default function App() { /> ); } else if (netInfo.isInternetReachable) { - global.formsSockets = useFiltering(global.location); + global.formsSockets = useFiltering(global.location || global.defaultLocation); return ( + ):( + + Apresentar um erro no futuro + + ) ); }