hl-core 0.0.8-beta.6 → 0.0.8-beta.7

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": "hl-core",
3
- "version": "0.0.8-beta.6",
3
+ "version": "0.0.8-beta.7",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
@@ -470,7 +470,7 @@ export const useDataStore = defineStore('data', {
470
470
  });
471
471
  }
472
472
  if ('address' in user && user.address.length) {
473
- const country = this.countries.find(i => i.nameRu?.match(new RegExp(user.address.countryName, 'i')));
473
+ const country = this.countries.find(i => i.nameRu?.match(new RegExp(user.address[0].countryName, 'i')));
474
474
  const province = this.states.find(i => i.ids === user.address[0].stateCode);
475
475
  const localityType = this.localityTypes.find(i => i.nameRu === user.address[0].cityTypeName);
476
476
  const city = this.cities.find(i => !!user.address[0].cityName && i.nameRu === user.address[0].cityName.replace('г.', ''));
@@ -538,7 +538,7 @@ export const useDataStore = defineStore('data', {
538
538
  });
539
539
  }
540
540
  if ('address' in user && user.address.length) {
541
- const country = this.countries.find(i => i.nameRu?.match(new RegExp(user.address.countryName, 'i')));
541
+ const country = this.countries.find(i => i.nameRu?.match(new RegExp(user.address[0].countryName, 'i')));
542
542
  const province = this.states.find(i => i.ids === user.address[0].stateCode);
543
543
  const localityType = this.localityTypes.find(i => i.nameRu === user.address[0].cityTypeName);
544
544
  const city = this.cities.find(i => !!user.address[0].cityName && i.nameRu === user.address[0].cityName.replace('г.', ''));