|
@@ -705,9 +705,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
if (refreshInterval > 0 && showNomads) {
|
|
if (refreshInterval > 0 && showNomads) {
|
|
const intervalId = setInterval(() => {
|
|
const intervalId = setInterval(() => {
|
|
- if (location && token && showNomads) {
|
|
|
|
- refetchUsersLocation();
|
|
|
|
- }
|
|
|
|
|
|
+ refetchUsersLocation();
|
|
}, refreshInterval);
|
|
}, refreshInterval);
|
|
|
|
|
|
return () => clearInterval(intervalId);
|
|
return () => clearInterval(intervalId);
|