ordering-ui-react-native 0.23.74-test3 → 0.23.74-test4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.23.74-test3",
3
+ "version": "0.23.74-test4",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -52,7 +52,7 @@ const MapViewComponent = (props: MapViewParams) => {
52
52
  };
53
53
 
54
54
  const fitCoordinates = (location?: any) => {
55
- if (mapRef.current) {
55
+ if (mapRef.current && typeof location.latitude === 'number' && !Number.isNaN(location.latitude) && typeof location.longitude === 'number' && !Number.isNaN(location.longitude)) {
56
56
  const isSendCoordinates =
57
57
  location &&
58
58
  userLocation &&
@@ -271,7 +271,7 @@ const MapViewComponent = (props: MapViewParams) => {
271
271
  onTouchStart={() => (following.current = false)}
272
272
  >
273
273
  <>
274
- {Object.values(markerGroups).length ? (Object.values(markerGroups).map((marker: any) => (
274
+ {/* {Object.values(markerGroups).length ? (Object.values(markerGroups).map((marker: any) => (
275
275
  <RenderMarker
276
276
  key={marker[0]?.business_id}
277
277
  marker={marker[0]}
@@ -285,7 +285,7 @@ const MapViewComponent = (props: MapViewParams) => {
285
285
  orderIds={marker.map((order: any) => order.id).join(', ')}
286
286
  customer
287
287
  />
288
- ))) : null}
288
+ ))) : null} */}
289
289
  {typeof location.lat === 'number' && !Number.isNaN(location.lat) && typeof location.lng === 'number' && !Number.isNaN(location.lng) ? (
290
290
  <Marker
291
291
  coordinate={{