diff --git a/examples/shopping-cart/components/Cart.vue b/examples/shopping-cart/components/Cart.vue index a5808ace0..b2025757c 100644 --- a/examples/shopping-cart/components/Cart.vue +++ b/examples/shopping-cart/components/Cart.vue @@ -3,8 +3,8 @@

Your Cart

Please add some products to cart.

Total: {{ total | currency }}

@@ -23,8 +23,8 @@ export default { checkoutStatus: 'checkoutStatus' }), total () { - return this.products.reduce((total, p) => { - return total + p.price * p.quantity + return this.products.reduce((total, product) => { + return total + product.price * product.quantity }, 0) } }, diff --git a/examples/shopping-cart/components/ProductList.vue b/examples/shopping-cart/components/ProductList.vue index a3b1a67ef..288ed3d82 100644 --- a/examples/shopping-cart/components/ProductList.vue +++ b/examples/shopping-cart/components/ProductList.vue @@ -1,11 +1,11 @@