浏览代码

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);