ソースを参照

location update

Viktoriia 1 ヶ月 前
コミット
2ebc8b456b
1 ファイル変更1 行追加3 行削除
  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);