mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 10:39:59 +01:00
fix NaN in cart total
This commit is contained in:
parent
91afd69a95
commit
0fdc13666f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user