Pārlūkot izejas kodu

location update

Viktoriia 1 mēnesi atpakaļ
vecāks
revīzija
2ebc8b456b
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      src/screens/InAppScreens/MapScreen/index.tsx

+ 1 - 3
src/screens/InAppScreens/MapScreen/index.tsx

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