simpo-component-library 1.4.49 → 1.4.50

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.
@@ -4945,7 +4945,7 @@ class FeaturedProductsComponent extends BaseSection {
4945
4945
  this.storageService.getUserCart().then((cartResponse) => {
4946
4946
  cartResponse.onsuccess = (cartData) => {
4947
4947
  console.log(cartData);
4948
- this.USER_CART = cartData;
4948
+ this.USER_CART = cartData.target.result;
4949
4949
  console.log(this.USER_CART);
4950
4950
  console.log(this.responseData);
4951
4951
  this.responseData?.forEach((product) => {
@@ -4958,7 +4958,7 @@ class FeaturedProductsComponent extends BaseSection {
4958
4958
  });
4959
4959
  this.storageService.getUserWhishlist().then((wishlistResponse) => {
4960
4960
  wishlistResponse.onsuccess = (whislistData) => {
4961
- this.USER_WISHLIST = whislistData;
4961
+ this.USER_WISHLIST = whislistData.target.result;
4962
4962
  this.responseData?.forEach((product) => {
4963
4963
  this.USER_WISHLIST?.forEach((item) => {
4964
4964
  if (item.itemId == product.itemId)
@@ -5138,7 +5138,7 @@ class ProductDescComponent extends BaseSection {
5138
5138
  this.responseData.quantity = 0;
5139
5139
  this.storageService.getUserCart().then((cartResponse) => {
5140
5140
  cartResponse.onsuccess = (cartData) => {
5141
- this.USER_CART = cartData;
5141
+ this.USER_CART = cartData.target.result;
5142
5142
  this.USER_CART?.forEach((item) => {
5143
5143
  if (item.itemId == productId)
5144
5144
  this.responseData.quantity = item.quantity;
@@ -5147,7 +5147,7 @@ class ProductDescComponent extends BaseSection {
5147
5147
  });
5148
5148
  this.storageService.getUserWhishlist().then((wishlistResponse) => {
5149
5149
  wishlistResponse.onsuccess = (whislistData) => {
5150
- this.USER_WISHLIST = whislistData;
5150
+ this.USER_WISHLIST = whislistData.target.result;
5151
5151
  this.USER_WISHLIST?.forEach((item) => {
5152
5152
  if (item.itemId == productId)
5153
5153
  this.isItemAsFavorite = true;
@@ -5405,7 +5405,7 @@ class ProductListComponent extends BaseSection {
5405
5405
  this.responseData = response.data.data;
5406
5406
  this.storageService.getUserCart().then((cartResponse) => {
5407
5407
  cartResponse.onsuccess = (cartData) => {
5408
- this.USER_CART = cartData;
5408
+ this.USER_CART = cartData.target.result;
5409
5409
  this.responseData?.forEach((product) => {
5410
5410
  this.USER_CART?.forEach((item) => {
5411
5411
  if (item.itemId == product.itemId)
@@ -5416,7 +5416,7 @@ class ProductListComponent extends BaseSection {
5416
5416
  });
5417
5417
  this.storageService.getUserWhishlist().then((wishlistResponse) => {
5418
5418
  wishlistResponse.onsuccess = (whislistData) => {
5419
- this.USER_WISHLIST = whislistData;
5419
+ this.USER_WISHLIST = whislistData.target.result;
5420
5420
  this.responseData?.forEach((product) => {
5421
5421
  this.USER_WISHLIST?.forEach((item) => {
5422
5422
  if (item.itemId == product.itemId)
@@ -5662,7 +5662,7 @@ class CartComponent extends BaseSection {
5662
5662
  this.userDetails = this.storageService.getUser();
5663
5663
  this.storageService.getUserCart().then((cartResponse) => {
5664
5664
  cartResponse.onsuccess = (cartData) => {
5665
- this.USER_CART_ITEMS = cartData;
5665
+ this.USER_CART_ITEMS = cartData.target.result;
5666
5666
  this.responseData = this.USER_CART_ITEMS;
5667
5667
  if (this.userCart) {
5668
5668
  this.userCart.orderedItems = this.USER_CART_ITEMS;