@woosmap/ui 2.38.0 → 2.39.0

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": "@woosmap/ui",
3
- "version": "2.38.0",
3
+ "version": "2.39.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -43,7 +43,7 @@ export default class GeolocationDemo extends Component {
43
43
  .then((response) => {
44
44
  const { data: geolocation } = response;
45
45
  const { stores } = geolocation;
46
- const hasStores = stores && stores.length > 1;
46
+ const hasStores = stores?.features?.length > 1;
47
47
 
48
48
  this.setState({ geolocation, hasStores, error: null }, this.displayOnMap);
49
49
  })
@@ -56,7 +56,7 @@
56
56
  padding 0
57
57
  min-height unset
58
58
  &--LOCALITIES
59
- &-localities
59
+ &--localities
60
60
  background-color $localities
61
61
  &--GEOLOCATION
62
62
  &--geolocation
@@ -65,7 +65,7 @@
65
65
  &--distance
66
66
  background-color $distance
67
67
  &--STORES
68
- &-stores
68
+ &--stores
69
69
  background-color $stores
70
70
  &--ADDRESS
71
71
  &--address
@@ -73,8 +73,8 @@
73
73
  &--MAP
74
74
  &--map
75
75
  background-color $map
76
- &--MERCHANT
77
- &--merchant
76
+ &--MERCHANTS
77
+ &--merchants
78
78
  background-color $merchant
79
79
  &--TRAFFIC
80
80
  &--merchant