From 0fdc13666f611303318ee8d202a2d34194a4e42a Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Fri, 30 Dec 2022 10:00:11 +0000 Subject: [PATCH] fix NaN in cart total --- lnbits/extensions/shop/templates/shop/stall.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lnbits/extensions/shop/templates/shop/stall.html b/lnbits/extensions/shop/templates/shop/stall.html index 78424e26..e2b70f36 100644 --- a/lnbits/extensions/shop/templates/shop/stall.html +++ b/lnbits/extensions/shop/templates/shop/stall.html @@ -338,7 +338,6 @@ let zoneCost = this.stall.zones.find( z => z.value == this.checkoutDialog.data.shippingzone ) - console.log(+this.cart.total, zoneCost.cost) return +this.cart.total + zoneCost.cost } }, @@ -367,7 +366,6 @@ }) ).data this.exchangeRate = rate[this.unit] - console.log(this.exchangeRate) } catch (error) { LNbits.utils.notifyApiError(error) } @@ -397,7 +395,7 @@ icon: 'thumb_up' }) this.cart.products = prod - this.updateCart(item.price) + this.updateCart(+item.price) }, removeFromCart() {}, updateCart(price) {