瀏覽代碼

fixed another landmark type issue

chase 2 年之前
父節點
當前提交
af5fbb1d15
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/components/Map/MainMapComponent/OutdoorMap.tsx
  2. 2 2
      src/utils/RequestUtils.ts

+ 1 - 1
src/components/Map/MainMapComponent/OutdoorMap.tsx

@@ -332,7 +332,7 @@ const OutdoorMap: React.FC<OutdoorMapProps> = (props) => {
                                     onPress={() => props.focusLandmark(landmark)}
                                     key={landmark.id}
                                     coordinate={{ latitude: landmark.latitude as number, longitude: landmark.longitude as number }} >
-                                    {landmark.landmark_type ? <Image style={{ height: 35, width: 25 }} source={lmTypes[landmark.landmark_type].image} /> : null}
+                                    {landmark.landmark_type ? <Image style={{ height: 35, width: 25 }} source={lmTypes[landmark.landmark_type]?.image} /> : null}
                                 </Marker>)
                         }
                     }

+ 2 - 2
src/utils/RequestUtils.ts

@@ -25,8 +25,8 @@ import Config from 'react-native-config'
 //export const API_URL = 'http://192.168.3.81:8000'
 // export const API_URL = 'https://staging.clicknpush.ca'
 
-export const API_URL = 'http://192.168.3.102:8000'   // Chase
+//export const API_URL = 'http://192.168.3.102:8000'   // Chase
 //export const API_URL = 'http://192.168.0.22:8000'       // Eric
-//export const API_URL = 'https://app.clicknpush.ca'
+export const API_URL = 'https://app.clicknpush.ca'
 
 // export const API_URL = Config.API_URL