@salla.sa/twilight-components 1.1.6 → 1.1.8

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.
@@ -778,8 +778,7 @@ const SallaLoyalty = class {
778
778
  */
779
779
  async exchangeLoyaltyPoint() {
780
780
  this.buttonLoading = true;
781
- const cartId = await salla.cart.api.getCurrentCartId();
782
- return await salla.loyalty.exchangePoint(this.selectedItem.id, cartId)
781
+ return await salla.loyalty.exchangePoint(this.selectedItem.id)
783
782
  .then((response) => {
784
783
  this.loyaltyProgram = response.data;
785
784
  })
@@ -107,8 +107,7 @@ export class SallaLoyalty {
107
107
  */
108
108
  async exchangeLoyaltyPoint() {
109
109
  this.buttonLoading = true;
110
- const cartId = await salla.cart.api.getCurrentCartId();
111
- return await salla.loyalty.exchangePoint(this.selectedItem.id, cartId)
110
+ return await salla.loyalty.exchangePoint(this.selectedItem.id)
112
111
  .then((response) => {
113
112
  this.loyaltyProgram = response.data;
114
113
  })
@@ -153,8 +153,7 @@ const SallaLoyalty$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
153
153
  */
154
154
  async exchangeLoyaltyPoint() {
155
155
  this.buttonLoading = true;
156
- const cartId = await salla.cart.api.getCurrentCartId();
157
- return await salla.loyalty.exchangePoint(this.selectedItem.id, cartId)
156
+ return await salla.loyalty.exchangePoint(this.selectedItem.id)
158
157
  .then((response) => {
159
158
  this.loyaltyProgram = response.data;
160
159
  })
@@ -774,8 +774,7 @@ const SallaLoyalty = class {
774
774
  */
775
775
  async exchangeLoyaltyPoint() {
776
776
  this.buttonLoading = true;
777
- const cartId = await salla.cart.api.getCurrentCartId();
778
- return await salla.loyalty.exchangePoint(this.selectedItem.id, cartId)
777
+ return await salla.loyalty.exchangePoint(this.selectedItem.id)
779
778
  .then((response) => {
780
779
  this.loyaltyProgram = response.data;
781
780
  })