simpo-component-library 1.6.132 → 1.6.136

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.
@@ -3549,7 +3549,9 @@ class StorageServiceService {
3549
3549
  this.restService.getUserItems(userDetails.userId, "WISHLIST")
3550
3550
  ]);
3551
3551
  request.subscribe((cartResponse) => {
3552
- const userCart = cartResponse?.[0].data;
3552
+ console.log("Cart Response : ", cartResponse);
3553
+ const userCart = cartResponse?.[0].data[0];
3554
+ console.log("Cart Response : ", userCart);
3553
3555
  if (userCart.cartId)
3554
3556
  localStorage.setItem("cartId", userCart.cartId);
3555
3557
  this.getUserCart().then((userCartResponse) => {
@@ -4865,6 +4867,7 @@ class CartComponent extends BaseSection {
4865
4867
  "mobile": this.userDetails?.contact.mobile,
4866
4868
  "email": this.userDetails?.contact.email,
4867
4869
  };
4870
+ this.cartInfo["cartId"] = localStorage.getItem("cartId");
4868
4871
  console.log("Response : ", response);
4869
4872
  if (response)
4870
4873
  this.proceedToCheckout();
@@ -4883,6 +4886,7 @@ class CartComponent extends BaseSection {
4883
4886
  "mobile": this.userDetails?.contact.mobile,
4884
4887
  "email": this.userDetails?.contact.email,
4885
4888
  };
4889
+ this.cartInfo["cartId"] = localStorage.getItem("cartId");
4886
4890
  console.log("Response : ", response);
4887
4891
  if (response)
4888
4892
  this.proceedToCheckout();