@timardex/cluemart-shared 1.4.15 → 1.4.16

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.
@@ -114,6 +114,7 @@ var useLocationSearch = (googleApi) => {
114
114
  const { latitude, longitude } = result.location;
115
115
  const { addressComponents, formattedAddress } = result;
116
116
  const address = addressComponents.reduce((acc, item) => {
117
+ if (!Array.isArray(item.types)) return acc;
117
118
  if (item.types.includes("street_number")) {
118
119
  return { ...acc, streetNumber: item.longText };
119
120
  }