@ikas/storefront 0.0.169-alpha.2 → 0.0.169-alpha.3

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/build/index.es.js CHANGED
@@ -23751,7 +23751,7 @@ var CheckoutViewModel = /** @class */ (function () {
23751
23751
  return [4 /*yield*/, IkasCheckoutAPI.listPaymentGateway(isLocal ? undefined : idList)];
23752
23752
  case 1:
23753
23753
  paymentGateways = _a.sent();
23754
- if (!paymentGateways) {
23754
+ if (!paymentGateways || !paymentGateways.length) {
23755
23755
  this.error = {
23756
23756
  type: ErrorType.API_ERROR,
23757
23757
  };
@@ -24230,6 +24230,7 @@ var CheckoutViewModel = /** @class */ (function () {
24230
24230
  }
24231
24231
  else {
24232
24232
  localStorage.removeItem(USE_DIFFERENT_ADDRESS_KEY);
24233
+ _this.checkout.billingAddress = _this.checkout.shippingAddress;
24233
24234
  }
24234
24235
  };
24235
24236
  this.setShouldSaveAddress = function (value) {
package/build/index.js CHANGED
@@ -23758,7 +23758,7 @@ var CheckoutViewModel = /** @class */ (function () {
23758
23758
  return [4 /*yield*/, IkasCheckoutAPI.listPaymentGateway(isLocal ? undefined : idList)];
23759
23759
  case 1:
23760
23760
  paymentGateways = _a.sent();
23761
- if (!paymentGateways) {
23761
+ if (!paymentGateways || !paymentGateways.length) {
23762
23762
  this.error = {
23763
23763
  type: ErrorType.API_ERROR,
23764
23764
  };
@@ -24237,6 +24237,7 @@ var CheckoutViewModel = /** @class */ (function () {
24237
24237
  }
24238
24238
  else {
24239
24239
  localStorage.removeItem(USE_DIFFERENT_ADDRESS_KEY);
24240
+ _this.checkout.billingAddress = _this.checkout.shippingAddress;
24240
24241
  }
24241
24242
  };
24242
24243
  this.setShouldSaveAddress = function (value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.169-alpha.2",
3
+ "version": "0.0.169-alpha.3",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",