hl-core 0.0.8-beta.38 → 0.0.8-beta.39

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.
@@ -612,7 +612,11 @@ export default defineComponent({
612
612
  if (calculatedPremiumDollar) {
613
613
  productConditionsForm.insurancePremiumPerMonth = dataStore.getNumberWithSpaces(productConditionsForm.insurancePremiumPerMonth);
614
614
  if (whichProduct.value === 'halykkazyna') {
615
- productConditionsForm.insurancePremiumPerMonthInDollar = dataStore.getNumberWithSpaces(calculatedPremiumDollar / dataStore.currencies.usd);
615
+ if (typeof dataStore.currencies.usd === 'number') {
616
+ productConditionsForm.insurancePremiumPerMonthInDollar = dataStore.getNumberWithSpaces(calculatedPremiumDollar / dataStore.currencies.usd);
617
+ } else {
618
+ dataStore.showToaster('error', dataStore.t('toaster.noCurrency'));
619
+ }
616
620
  }
617
621
  }
618
622
  }
@@ -636,7 +640,11 @@ export default defineComponent({
636
640
  if (calculatedSumDollar) {
637
641
  productConditionsForm.requestedSumInsured = dataStore.getNumberWithSpaces(productConditionsForm.requestedSumInsured);
638
642
  if (whichProduct.value === 'halykkazyna') {
639
- productConditionsForm.requestedSumInsuredInDollar = dataStore.getNumberWithSpaces(calculatedSumDollar / dataStore.currencies.usd);
643
+ if (typeof dataStore.currencies.usd === 'number') {
644
+ productConditionsForm.requestedSumInsuredInDollar = dataStore.getNumberWithSpaces(calculatedSumDollar / dataStore.currencies.usd);
645
+ } else {
646
+ dataStore.showToaster('error', dataStore.t('toaster.noCurrency'));
647
+ }
640
648
  }
641
649
  }
642
650
  }
package/locales/kz.json CHANGED
@@ -21,6 +21,7 @@
21
21
  "memberSave": "Қатысушы мәліметтерін сақтау кезіндегі қате"
22
22
  },
23
23
  "toaster": {
24
+ "noCurrency": "Отсутствует курс доллара",
24
25
  "membersLimit": "Количество этих участников превышено. Лимит составляет: {text}",
25
26
  "hasAlreadyMember": "Участник с таким ИИН уже есть в заявке",
26
27
  "noIinOrPhone": "SMS жіберу үшін дереккөз мәліметтер жоқ",
package/locales/ru.json CHANGED
@@ -21,6 +21,7 @@
21
21
  "memberSave": "Ошибка при сохранении данных участников"
22
22
  },
23
23
  "toaster": {
24
+ "noCurrency": "Отсутствует курс доллара",
24
25
  "membersLimit": "Количество этих участников превышено. Лимит составляет: {text}",
25
26
  "hasAlreadyMember": "Участник с таким ИИН уже есть в заявке",
26
27
  "noIinOrPhone": "Отсутствуют данные для отправки СМС",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.8-beta.38",
3
+ "version": "0.0.8-beta.39",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",