diff --git a/src/components/retailer/cart-product/CartProductList.vue b/src/components/retailer/cart-product/CartProductList.vue index 402a7d5..da0dfbd 100644 --- a/src/components/retailer/cart-product/CartProductList.vue +++ b/src/components/retailer/cart-product/CartProductList.vue @@ -68,14 +68,7 @@

{{ product.name }}

@@ -290,14 +283,7 @@

{{ product.name }}

diff --git a/src/components/retailer/retailer-search/RetailerSearchProducts.vue b/src/components/retailer/retailer-search/RetailerSearchProducts.vue index 5617711..50c8418 100644 --- a/src/components/retailer/retailer-search/RetailerSearchProducts.vue +++ b/src/components/retailer/retailer-search/RetailerSearchProducts.vue @@ -178,8 +178,7 @@ export default { return with2Decimals; }, async addToCart(sku,qty) { - if (sku) { - debugger + if (sku) { if (this.userAuth) { await this.$store .dispatch("userCartProduct/addToCart", { @@ -195,15 +194,15 @@ export default { color: "success", show: true, timeout: 2000 - }; - debugger + }; this.$store.dispatch("userCartProduct/cartProductList"); this.$emit("actionClose", this.snackbar); }) - .catch(() => { + .catch((error) => { + console.log("error",error) this.snackbar = { - message: 'Unexpected error while communicating with the cloud', + message: error.message, color: "error", show: true, timeout: 2000